|
NOX
Development
|
A simple square matrix class for use by NOX::LAPACK::Group. More...
#include <NOX_LAPACK_Matrix.H>

Public Member Functions | |
| Matrix () | |
| Create an empty matrix. | |
| Matrix (int m, int n) | |
| Create a m x n matrix with all entries zero. | |
| Matrix (const Matrix &a) | |
| Copy constructor. | |
| ~Matrix () | |
| Destructor. | |
| T & | operator() (int i, int j) |
| Access the (i,j) entry of A. | |
| const T & | operator() (int i, int j) const |
| Access the (i,j) entry of A. | |
| void | scale (T v) |
| Scale the matrix by a constant value. More... | |
| bool | print (std::ostream &stream) const |
| Prints out the matrix. | |
| int | numRows () const |
| Returns the number of rows in the matrix. | |
| int | numCols () const |
| Returns the number of columns in the matrix. | |
A simple square matrix class for use by NOX::LAPACK::Group.
The matrix is stored as a std::vector<T> array. It is templated so it can store entries of different types. For example, the LOCA LAPACK group stores a complex matrix for Hopf tracking.
|
inline |
Scale the matrix by a constant value.
This is needed to manipulate matrices in the LOCA library
routines.
Referenced by LOCA::LAPACK::Group::augmentJacobianForHomotopy(), and LOCA::LAPACK::Interface::computeShiftedMatrix().
1.8.5