geomc 1.0
A c++ linear algebra template library
Public Types | Public Member Functions | Static Public Attributes | List of all members
MatrixBase< T, M, N, Derived > Class Template Reference
Inheritance diagram for MatrixBase< T, M, N, Derived >:
WriteableMatrixBase< T, DYNAMIC_DIM, DYNAMIC_DIM, MatrixHandle< T > > WriteableMatrixBase< T, M, N, SimpleMatrix< T, M, N, Lyt, P > > WriteableMatrixBase< T, M, N, Derived > MatrixHandle< T > SimpleMatrix< T, M, N, Lyt, P > MatrixHandle< M::elem_t > MatrixWrapper< M >

Public Types

typedef T elem_t
 Element type.
 
typedef MtxSubsetIterator< const Derived, const elem_tconst_iterator
 Read-only row-major iterator over matrix elements.
 
typedef const_iterator const_region_iterator
 Read-only row-major iterator over the matrix elements in a rectangular region.
 
typedef MtxRowIterator< const Derived, const elem_tconst_row_iterator
 Read-only iterator over the elments of a row.
 
typedef MtxColIterator< const Derived, const elem_tconst_col_iterator
 Read-only iterator over the elements of a column.
 
typedef Storage< storage_token_t, _ImplStorageObjCount< Derived >::count > storagebuffer_t
 
typedef Derived recurring_t
 

Public Member Functions

index_t rows () const
 
index_t cols () const
 
derived_const_row_iterator operator[] (index_t i) const
 
const_row_iterator row (index_t i) const
 
const_col_iterator col (index_t i) const
 
elem_t operator() (index_t row, index_t col) const
 
const_iterator begin () const
 
const_iterator end () const
 
const_region_iterator region_begin (const MatrixRegion &r) const
 
const_region_iterator region_end (const MatrixRegion &r) const
 
storagebuffer_t get_storage_token_buffer () const
 

Static Public Attributes

static constexpr index_t ROWDIM = M
 Row dimension template parameter.
 
static constexpr index_t COLDIM = N
 Column dimension template parameter.
 

Member Function Documentation

◆ begin()

const_iterator begin ( ) const
inline
Returns
A read-only random-access row major-ordered iterator over the elements of this matrix, pointing to the element at (0,0).

◆ col()

const_col_iterator col ( index_t  i) const
inline
Parameters
iIndex of column (zero-indexed)
Returns
A const iterator over the elements of column i

◆ cols()

index_t cols ( ) const
inline
Returns
Number of columns in the matrix.

◆ end()

const_iterator end ( ) const
inline
Returns
A read-only random-access row major-ordered iterator over the elements of this matrix, pointing to the element just beyond the last element in the lower right corner.

◆ operator()()

elem_t operator() ( index_t  row,
index_t  col 
) const
inline

Get the element at (row, col).

Parameters
rowZero-indexed row coordinate
colZero-indexed column coordinate
Returns
The element at (row, col)

◆ operator[]()

derived_const_row_iterator operator[] ( index_t  i) const
inline
Parameters
iIndex of row (zero-indexed)
Returns
A const iterator over the elements of row i

◆ region_begin()

const_region_iterator region_begin ( const MatrixRegion r) const
inline
Parameters
rThe zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over.
Returns
A read-only, random-access, row-major iterator over the elements in region r, pointing at the first element in the region (upper left corner).

◆ region_end()

const_region_iterator region_end ( const MatrixRegion r) const
inline
Parameters
rThe zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over.
Returns
A read-only, random-access, row-major iterator over the elements in region r, pointing at the element just beyond the last element in the region.

◆ row()

const_row_iterator row ( index_t  i) const
inline
Parameters
iIndex of row (zero-indexed)
Returns
A const iterator over the elements of row i

◆ rows()

index_t rows ( ) const
inline
Returns
Number of rows in the matrix.

The documentation for this class was generated from the following files: