|
| CONST_SHAREDMATRIXN (const SHAREDMATRIXN &source) |
| Copy constructor.
|
|
| CONST_SHAREDMATRIXN (const CONST_SHAREDMATRIXN &source) |
| Copy constructor.
|
|
| CONST_SHAREDMATRIXN (unsigned rows, unsigned cols, unsigned leading_dim, unsigned start, SharedResizable< REAL > data) |
| Constructs the matrix using the given arguments.
|
|
const SHAREDMATRIXN | get () const |
| Gets this object as a standard shared matrix. More...
|
|
void | reset_from (const CONST_SHAREDMATRIXN &source) |
| Resets this from another shared matrix.
|
|
void | reset_from (const SHAREDMATRIXN &source) |
| Resets this from another shared matrix.
|
|
bool | is_symmetric (REAL tolerance=(REAL)-1.0) const |
|
REAL | norm_inf () const |
|
unsigned | rows () const |
|
unsigned | columns () const |
|
unsigned | leading_dim () const |
|
CONST_SHAREDMATRIXN & | resize (unsigned rows, unsigned columns, bool preserve=false) |
|
const REAL & | operator() (unsigned i, unsigned j) const |
| Accesses the given element.
|
|
const REAL * | data () const |
|
void | reset () |
| Resets the shared matrix.
|
|
CONST_COLUMN_ITERATOR | block_column_iterator_begin (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end) const |
| This file consists of general routines for constant matrices. More...
|
|
CONST_COLUMN_ITERATOR | block_column_iterator_end (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end) const |
| Gets a column iterator to a block.
|
|
CONST_ROW_ITERATOR | block_row_iterator_begin (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end) const |
| Gets a row iterator to a block.
|
|
CONST_ROW_ITERATOR | block_row_iterator_end (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end) const |
| Gets a row iterator to a block.
|
|
template<class V > |
V & | get_row (unsigned row, V &v) const |
|
template<class V > |
V & | get_column (unsigned column, V &v) const |
|
template<class T , class U > |
U & | transpose_mult_transpose (const T &x, U &y, REAL alpha=(REAL) 1.0, REAL beta=(REAL) 0.0) const |
| Does the operation y = beta*y + alpha*this'*x'.
|
|
template<class T , class U > |
U & | mult_transpose (const T &x, U &y, REAL alpha=(REAL) 1.0, REAL beta=(REAL) 0.0) const |
| Does the operation y = beta*y + alpha*this*x'.
|
|
template<class T , class U > |
U & | transpose_mult (const T &x, U &y, REAL alpha=(REAL) 1.0, REAL beta=(REAL) 0.0) const |
| Does the operation y = beta*y + alpha*this'*x.
|
|
template<class T , class U > |
U & | mult (const T &x, U &y, REAL alpha=(REAL) 1.0, REAL beta=(REAL) 0.0) const |
| Does the operation y = beta*y + alpha*this*x.
|
|
template<class M > |
M & | get_sub_mat (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end, M &m, Transposition trans=eNoTranspose) const |
| Gets the specified sub matrix. More...
|
|
template<class ForwardIterator , class M > |
M & | select_columns (ForwardIterator col_start, ForwardIterator col_end, M &m) const |
| Gets a submatrix of columns (not necessarily a block) More...
|
|
template<class M > |
M & | select_columns (std::vector< bool > &col_select, M &m) const |
| Gets a submatrix of columns (not necessarily a block) More...
|
|
template<class ForwardIterator , class M > |
M & | select_rows (ForwardIterator row_start, ForwardIterator row_end, M &m) const |
| Gets a submatrix of rows (not necessarily a block) More...
|
|
template<class M > |
M & | select_rows (std::vector< bool > &row_select, M &m) const |
| Gets a submatrix of rows (not necessarily a block) More...
|
|
template<class ForwardIterator1 , class ForwardIterator2 , class X > |
X & | select (ForwardIterator1 row_start, ForwardIterator1 row_end, ForwardIterator2 col_start, ForwardIterator2 col_end, X &m) const |
| Gets a submatrix (not necessarily a block) More...
|
|
template<class X > |
X & | select (const std::vector< bool > &rows, const std::vector< bool > &cols, X &m) const |
| Gets a submatrix (not necessarily a block)
|
|
template<class M > |
M & | select_square (const std::vector< bool > &indices, M &result) const |
| Gets a square submatrix (not necessarily a block)
|
|
template<class ForwardIterator , class M > |
M & | select_square (ForwardIterator start, ForwardIterator end, M &m) const |
|
CONST_COLUMN_ITERATOR | column_iterator_begin () const |
| Get an iterator to the beginning.
|
|
CONST_COLUMN_ITERATOR | column_iterator_end () const |
| Get an iterator to the end.
|
|
CONST_ROW_ITERATOR | row_iterator_begin () const |
| Get an iterator to the beginning.
|
|
CONST_ROW_ITERATOR | row_iterator_end () const |
| Get an iterator to the end.
|
|
CONST_SHAREDVECTORN | row (unsigned i) const |
| Gets the specified sub matrix. More...
|
|
CONST_SHAREDVECTORN | column (unsigned i) const |
| Gets a shared vector for a column.
|
|
CONST_SHAREDMATRIXN | block (unsigned row_start, unsigned row_end, unsigned col_start, unsigned col_end) const |
| Gets a block as a constant shared matrix.
|
|
A generic, possibly non-square matrix using constant shared data.
The underlying data is stored in column-major format (e.g., the element at row 1, column 0 is the second element in the flat array).