#include <simple_matrix.hpp>
Collaboration diagram for simple_dense::simple_matrix< T >:
Public Member Functions | |
| simple_matrix () | |
| Default constructor. Simple initialization. | |
| simple_matrix (index_t nrows, index_t ncols, index_t ld=0) | |
| T & | operator() (index_t row, index_t col) |
| T | operator() (index_t row, index_t col) const |
| const_data_iterator | getElmIterator (index_t row, index_t col) const |
| Get pointer (iterator) to element, const version. | |
| data_iterator | getElmIterator (index_t row, index_t col) |
| Get pointer (iterator) to element. | |
| index_t | numRows () const |
| Get number of rows. | |
| index_t | numCols () const |
| Get number of columns. | |
| index_t | getLd () const |
| Get leading dimension size. | |
| void | resize (index_t nrows, index_t ncols, index_t ld=0) |
| void | fill (const T value) |
| Fill matrix with a value. | |
| simple_matrix< T > & | operator= (const T value) |
| Assignment operator that fills with value. | |
| simple_matrix< T > & | operator *= (const T factor) |
| Multiply by constant. | |
| simple_matrix< T > & | operator() (range rows, range cols) |
| Obtain a sub-block by setting active ranges. | |
| simple_matrix< T > & | operator= (const simple_matrix< T > &src) |
| Copy constructor. | |
| simple_matrix< T > & | operator= (simple_matrix< T > &src) |
| Copy from simple_matrix<T>. | |
| void | fillColumn (index_t k, const_data_iterator src) |
| Fill column with data k Column number src Data source. | |
| void | fillColumnSection (index_t k, const_data_iterator src, index_t n) |
| Fill column section with data k Column number src Data source. | |
| void | fillDataSection (data_iterator dest, const_data_iterator src, index_t n) |
| Fill section of data data k Column number src Data source. | |
| simple_dense::simple_matrix< T >::simple_matrix | ( | index_t | nrows, | |
| index_t | ncols, | |||
| index_t | ld = 0 | |||
| ) | [inline] |
Constructor that allocates memory for matrix.
| nrows | Number of rows in matrix | |
| ncols | Number of columns in matrix | |
| ld | Leading dimension size. Default is equivalent to using ld = nrows. Must be >= nrows. |
Here is the call graph for this function:
| void simple_dense::simple_matrix< T >::fill | ( | const T | value | ) | [inline] |
Fill matrix with a value.
| value | Value to fill with |
| data_iterator simple_dense::simple_matrix< T >::getElmIterator | ( | index_t | row, | |
| index_t | col | |||
| ) | [inline] |
Get pointer (iterator) to element.
| row | row number | |
| col | column number |
| const_data_iterator simple_dense::simple_matrix< T >::getElmIterator | ( | index_t | row, | |
| index_t | col | |||
| ) | const [inline] |
Get pointer (iterator) to element, const version.
| row | row number | |
| col | column number |
| simple_matrix<T>& simple_dense::simple_matrix< T >::operator *= | ( | const T | factor | ) | [inline] |
Multiply by constant.
| factor | factor to multiply with |
Here is the call graph for this function:
| T simple_dense::simple_matrix< T >::operator() | ( | index_t | row, | |
| index_t | col | |||
| ) | const [inline] |
Element access, const version
| row | The row | |
| col | The column |
Here is the call graph for this function:
| T& simple_dense::simple_matrix< T >::operator() | ( | index_t | row, | |
| index_t | col | |||
| ) | [inline] |
Element access.
| row | The row | |
| col | The column |
Here is the call graph for this function:
| simple_matrix<T>& simple_dense::simple_matrix< T >::operator= | ( | simple_matrix< T > & | src | ) | [inline] |
Copy from simple_matrix<T>.
| src | Matrix to copy |
Here is the call graph for this function:
| simple_matrix<T>& simple_dense::simple_matrix< T >::operator= | ( | const T | value | ) | [inline] |
Assignment operator that fills with value.
| value | Value to fill with |
Here is the call graph for this function:
| void simple_dense::simple_matrix< T >::resize | ( | index_t | nrows, | |
| index_t | ncols, | |||
| index_t | ld = 0 | |||
| ) | [inline] |
Resize matrix
| nrows | Number of rows in matrix | |
| ncols | Number of columns in matrix | |
| ld | Leading dimension. Default is = nrows. Must be >= nrows. |
1.4.7