#include <MatrixBase.h>
Inheritance diagram for mat::MatrixBase< Treal, Tmatrix >:

Public Member Functions | |
| void | resetSizesAndBlocks (SizesAndBlocks const &newRows, SizesAndBlocks const &newCols) |
| void | getRows (SizesAndBlocks &rowsCopy) const |
| void | getCols (SizesAndBlocks &colsCopy) const |
| bool | is_empty () const |
| Check if matrix is empty. | |
| Treal | trace () const |
| void | add_identity (Treal alpha) |
| MatrixBase< Treal, Tmatrix > & | operator *= (Treal const alpha) |
| bool | operator== (int k) const |
| void | clear () |
| Release memory for the information written to file. | |
| size_t | memory_usage () const |
| void | write_to_buffer_count (int &n_bytes) const |
| int | get_nrows () const |
| int | get_ncols () const |
| Tmatrix const & | getMatrix () const |
| Tmatrix & | getMatrix () |
| Treal | maxAbsValue () const |
| Get largest absolute value of matrix element in the matrix. | |
Protected Member Functions | |
| MatrixBase () | |
| MatrixBase (const MatrixBase< Treal, Tmatrix > &other) | |
| MatrixBase< Treal, Tmatrix > & | operator= (const MatrixBase< Treal, Tmatrix > &other) |
| MatrixBase< Treal, Tmatrix > & | operator= (const Xtrans< MatrixGeneral< Treal, Tmatrix > > &mt) |
| void | write_to_buffer_base (void *buffer, const int n_bytes, const matrix_type mattype) const |
| void | read_from_buffer_base (void *buffer, const int n_bytes, const matrix_type mattype) |
| void | writeToFileBase (std::ofstream &file, matrix_type const mattype) const |
| void | readFromFileBase (std::ifstream &file, matrix_type const mattype) |
| std::string | obj_type_id () const |
| void | inMemorySet (bool inMem) |
| Make object invalid (false) via this function when object is written to file and valid (true) when object is read from file. | |
Static Protected Member Functions | |
| static void | getPermutedIndexes (std::vector< int > const &index, std::vector< int > const &permutation, std::vector< int > &newIndex) |
Protected Attributes | |
| ValidPtr< Tmatrix > | matrixPtr |
Friends | |
| class | MatrixGeneral< Treal, Tmatrix > |
| class | MatrixSymmetric< Treal, Tmatrix > |
| class | MatrixTriangular< Treal, Tmatrix > |
This class provides a base for an API to a matrix library built up from three types which are also the template arguments to this class.
Treal: Type for real numbers
Tmatrix: The matrix class
| mat::MatrixBase< Treal, Tmatrix >::MatrixBase | ( | ) | [inline, protected] |
| mat::MatrixBase< Treal, Tmatrix >::MatrixBase | ( | const MatrixBase< Treal, Tmatrix > & | other | ) | [inline, protected] |
| void mat::MatrixBase< Treal, Tmatrix >::add_identity | ( | Treal | alpha | ) | [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::clear | ( | ) | [inline, virtual] |
| int mat::MatrixBase< Treal, Tmatrix >::get_ncols | ( | ) | const [inline] |
| int mat::MatrixBase< Treal, Tmatrix >::get_nrows | ( | ) | const [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::getCols | ( | SizesAndBlocks & | colsCopy | ) | const [inline] |
| Tmatrix& mat::MatrixBase< Treal, Tmatrix >::getMatrix | ( | ) | [inline] |
| Tmatrix const& mat::MatrixBase< Treal, Tmatrix >::getMatrix | ( | ) | const [inline] |
| static void mat::MatrixBase< Treal, Tmatrix >::getPermutedIndexes | ( | std::vector< int > const & | index, | |
| std::vector< int > const & | permutation, | |||
| std::vector< int > & | newIndex | |||
| ) | [inline, static, protected] |
| void mat::MatrixBase< Treal, Tmatrix >::getRows | ( | SizesAndBlocks & | rowsCopy | ) | const [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::inMemorySet | ( | bool | inMem | ) | [inline, protected, virtual] |
Make object invalid (false) via this function when object is written to file and valid (true) when object is read from file.
Implements mat::FileWritable.
| bool mat::MatrixBase< Treal, Tmatrix >::is_empty | ( | ) | const [inline] |
Check if matrix is empty.
Being empty is not the same as being zero. A matrix being empty means that the data structure has not been set.
| Treal mat::MatrixBase< Treal, Tmatrix >::maxAbsValue | ( | ) | const [inline] |
Get largest absolute value of matrix element in the matrix.
| size_t mat::MatrixBase< Treal, Tmatrix >::memory_usage | ( | ) | const [inline] |
| std::string mat::MatrixBase< Treal, Tmatrix >::obj_type_id | ( | ) | const [inline, protected, virtual] |
Implements mat::FileWritable.
Reimplemented in mat::MatrixGeneral< Treal, Tmatrix >, mat::MatrixSymmetric< Treal, Tmatrix >, and mat::MatrixTriangular< Treal, Tmatrix >.
| MatrixBase<Treal, Tmatrix>& mat::MatrixBase< Treal, Tmatrix >::operator *= | ( | Treal const | alpha | ) | [inline] |
| MatrixBase<Treal, Tmatrix>& mat::MatrixBase< Treal, Tmatrix >::operator= | ( | const Xtrans< MatrixGeneral< Treal, Tmatrix > > & | mt | ) | [inline, protected] |
Reimplemented in mat::MatrixGeneral< Treal, Tmatrix >.
| MatrixBase<Treal, Tmatrix>& mat::MatrixBase< Treal, Tmatrix >::operator= | ( | const MatrixBase< Treal, Tmatrix > & | other | ) | [inline, protected] |
| bool mat::MatrixBase< Treal, Tmatrix >::operator== | ( | int | k | ) | const [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::read_from_buffer_base | ( | void * | buffer, | |
| const int | n_bytes, | |||
| const matrix_type | mattype | |||
| ) | [protected] |
| void mat::MatrixBase< Treal, Tmatrix >::readFromFileBase | ( | std::ifstream & | file, | |
| matrix_type const | mattype | |||
| ) | [protected] |
| void mat::MatrixBase< Treal, Tmatrix >::resetSizesAndBlocks | ( | SizesAndBlocks const & | newRows, | |
| SizesAndBlocks const & | newCols | |||
| ) | [inline] |
| Treal mat::MatrixBase< Treal, Tmatrix >::trace | ( | ) | const [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::write_to_buffer_base | ( | void * | buffer, | |
| const int | n_bytes, | |||
| const matrix_type | mattype | |||
| ) | const [protected] |
| void mat::MatrixBase< Treal, Tmatrix >::write_to_buffer_count | ( | int & | n_bytes | ) | const [inline] |
| void mat::MatrixBase< Treal, Tmatrix >::writeToFileBase | ( | std::ofstream & | file, | |
| matrix_type const | mattype | |||
| ) | const [protected] |
friend class MatrixGeneral< Treal, Tmatrix > [friend] |
friend class MatrixSymmetric< Treal, Tmatrix > [friend] |
friend class MatrixTriangular< Treal, Tmatrix > [friend] |
ValidPtr<Tmatrix> mat::MatrixBase< Treal, Tmatrix >::matrixPtr [protected] |
1.4.7