#include <matrix.hpp>
Static Public Member Functions | |
static vcl_size_t | mem_index (vcl_size_t i, vcl_size_t j, vcl_size_t num_rows, vcl_size_t num_cols) |
Returns the memory offset for entry (i,j) of a dense matrix. | |
static vcl_size_t | internal_size1 (vcl_size_t rows, vcl_size_t alignment) |
static vcl_size_t | internal_size2 (vcl_size_t cols, vcl_size_t alignment) |
static vcl_size_t internal_size1 | ( | vcl_size_t | rows, | |
vcl_size_t | alignment | |||
) | [inline, static] |
static vcl_size_t internal_size2 | ( | vcl_size_t | cols, | |
vcl_size_t | alignment | |||
) | [inline, static] |
static vcl_size_t mem_index | ( | vcl_size_t | i, | |
vcl_size_t | j, | |||
vcl_size_t | num_rows, | |||
vcl_size_t | num_cols | |||
) | [inline, static] |
Returns the memory offset for entry (i,j) of a dense matrix.
i | row index | |
j | column index | |
num_rows | number of entries per row (including alignment) | |
num_cols | number of entries per column (including alignment) |