Static Public Member Functions

row_major Struct Reference

A tag for row-major storage of a dense matrix. More...

#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)

Detailed Description

A tag for row-major storage of a dense matrix.


Member Function Documentation

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.

Parameters:
i row index
j column index
num_rows number of entries per row (including alignment)
num_cols number of entries per column (including alignment)

The documentation for this struct was generated from the following file: