ViennaCL - The Vienna Computing Library  1.2.0
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 
)
inlinestatic
static vcl_size_t internal_size2 ( vcl_size_t  cols,
vcl_size_t  alignment 
)
inlinestatic
static vcl_size_t mem_index ( vcl_size_t  i,
vcl_size_t  j,
vcl_size_t  num_rows,
vcl_size_t  num_cols 
)
inlinestatic

Returns the memory offset for entry (i,j) of a dense matrix.

Parameters
irow index
jcolumn index
num_rowsnumber of entries per row (including alignment)
num_colsnumber of entries per column (including alignment)

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