Honeycomb
0.1
Component-Model Framework
|
Block wrapper around any constant matrix with auto / dynamic dense storage type. Fully recursive, a block can wrap a block. More...
#include <Block.h>
Public Types | |
typedef Traits< Subclass >::MatrixP | MatrixP |
typedef Traits< Subclass >::ElemT | ElemT |
Public Types inherited from honey::matrix::priv::StorageDense< Subclass > | |
typedef Traits< Subclass >::Real | Real |
typedef Traits< Subclass >::ElemT | ElemT |
typedef Traits< Subclass >::Alloc | Alloc |
Public Member Functions | |
ElemT * | operator[] (sdt row) const |
ElemT & | operator() (sdt i) const |
ElemT & | operator() (sdt row, sdt col) const |
ElemT * | data () const |
Get as array. Top-left corner of block sub-section is at index 0. More... | |
MatrixP & | parent () const |
Get parent matrix that contains this sub-block. More... | |
sdt | row () const |
Get row offset. More... | |
sdt | col () const |
Get column offset. More... | |
sdt | rows () const |
Get row size. More... | |
sdt | cols () const |
Get column size. More... | |
sdt | size () const |
Get size. More... | |
Public Member Functions inherited from honey::matrix::priv::StorageDense< Subclass > | |
const ElemT & | operator() (sdt row, sdt col) const |
ElemT & | operator() (sdt row, sdt col) |
void | resize (sdt rows, sdt cols) |
Default resize, just asserts that fixed dimensions match args. More... | |
sdt | rows () const |
sdt | cols () const |
sdt | size () const |
const ElemT * | data () const |
ElemT * | data () |
operator ElemT * () | |
Cast to array. More... | |
operator const ElemT * () const | |
const Subclass & | subc () const |
Get the subclass that inherited from this base class. More... | |
Subclass & | subc () |
Protected Member Functions | |
void | initBlock (MatrixP &m, sdt row, sdt col, sdt rows, sdt cols) |
Protected Member Functions inherited from honey::matrix::priv::StorageDense< Subclass > | |
void | assertIndex (sdt i) const |
void | assertIndex (sdt row, sdt col) const |
void | assertSize (sdt size) const |
void | assertSize (sdt rows, sdt cols) const |
Additional Inherited Members | |
Static Public Attributes inherited from honey::matrix::priv::StorageDense< Subclass > | |
static const sdt | s_rows = Traits<Subclass>::rows |
static const sdt | s_cols = Traits<Subclass>::cols |
static const sdt | s_size = s_rows != dynamic && s_cols != dynamic ? s_rows*s_cols : dynamic |
static const int | options = Traits<Subclass>::options |
Block wrapper around any constant matrix with auto / dynamic dense storage type. Fully recursive, a block can wrap a block.
typedef Traits<Subclass>::ElemT honey::matrix::priv::StorageDense< Subclass >::ElemT |
typedef Traits<Subclass>::MatrixP honey::matrix::priv::StorageBlock< Subclass >::MatrixP |
|
inline |
Get column offset.
|
inline |
Get column size.
|
inline |
Get as array. Top-left corner of block sub-section is at index 0.
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
Get parent matrix that contains this sub-block.
|
inline |
Get row offset.
|
inline |
Get row size.
|
inline |
Get size.