Public Member Functions |
| | MatrixTriangular () |
| | Default constructor.
|
| | MatrixTriangular (const MatrixTriangular< Treal, Tmatrix > &tri) |
| | Copy constructor.
|
MatrixTriangular< Treal,
Tmatrix > & | operator= (const MatrixTriangular< Treal, Tmatrix > &tri) |
MatrixTriangular< Treal,
Tmatrix > & | operator= (int const k) |
| | Set matrix to zero or identity: A = 0 or A = 1.
|
| void | assign_from_sparse (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values, SizesAndBlocks const &newRows, SizesAndBlocks const &newCols) |
| | Assign from sparse matrix given by three vectors.
|
| void | add_values (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > const &values) |
| | Add given set of values to the matrix (+=).
|
| void | get_values (std::vector< int > const &rowind, std::vector< int > const &colind, std::vector< Treal > &values) const |
| | Get values given by row and column index lists.
|
| void | get_all_values (std::vector< int > &rowind, std::vector< int > &colind, std::vector< Treal > &values) const |
| | Get all values and corresponding row and column index lists, in matrix.
|
| void | inch (const MatrixGeneral< Treal, Tmatrix > &SPD, const Treal threshold, const side looking=left, const inchversion version=unstable) |
| void | inch (const MatrixSymmetric< Treal, Tmatrix > &SPD, const Treal threshold, const side looking=left, const inchversion version=unstable) |
| void | thresh (Treal const threshold, normType const norm) |
| Treal | frob () const |
| Treal | eucl (Treal const requestedAccuracy, int maxIter=-1) const |
| Treal | eucl_thresh (Treal const threshold) |
| Treal | eucl_thresh_congr_trans_measure (Treal const threshold, MatrixSymmetric< Treal, Tmatrix > &trA) |
| void | frob_thresh (Treal threshold) |
| size_t | nnz () const |
| size_t | nvalues () const |
| void | write_to_buffer (void *buffer, const int n_bytes) const |
| void | read_from_buffer (void *buffer, const int n_bytes) |
| void | random () |
| template<typename TRule > |
| void | setElementsByRule (TRule &rule) |
| | Uses rule depending on the row and column indexes to set matrix elements The Trule class should have the function "Treal = set(int row,int col)" which is used to set the elements.
|
MatrixTriangular< Treal,
Tmatrix > & | operator+= (XY< Treal, MatrixTriangular< Treal, Tmatrix > > const &sm) |
| | B += alpha * A.
|
| std::string | obj_type_id () const |
| 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.
|
| void | writeToFile () |
| | Write object to file if filewrite is active.
|
| void | readFromFile () |
| | Read object from file if filewrite is active.
|
| bool | isOnFile () |
| | Check if object is on file.
|
| long int | fileSize () |
| | Return file size.
|
Protected Member Functions |
| void | writeToFileProt (std::ofstream &file) const |
| | Write object to file.
|
| void | readFromFileProt (std::ifstream &file) |
| | Read object from file.
|
| | 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) |
| 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.
|
| | FileWritable () |
| | Gives each object a unique ID-number and filename.
|
| virtual | ~FileWritable () |
| | Removes file, if any.
|
| | FileWritable (FileWritable const &) |
| FileWritable & | operator= (FileWritable const &) |
template<typename Treal, typename Tmatrix>
class mat::MatrixTriangular< Treal, Tmatrix >
Upper non-unit triangular matrix.
This class belongs to the matrix API
Treal: Type for real numbers
Tmatrix: The matrix class
- See also:
- MatrixBase
-
MatrixGeneral
-
MatrixSymmetric