#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. | |
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. | |
Private Attributes | |
int | p |
This is a p x q matrix. | |
int | q |
std::vector< T > | entries |
Entries of the matrix. |
The matrix is stored as a 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.
Definition at line 58 of file NOX_LAPACK_Matrix.H.
NOX::LAPACK::Matrix< T >::Matrix | ( | ) | [inline] |
NOX::LAPACK::Matrix< T >::Matrix | ( | int | m, | |
int | n | |||
) | [inline] |
NOX::LAPACK::Matrix< T >::Matrix | ( | const Matrix< T > & | a | ) | [inline] |
NOX::LAPACK::Matrix< T >::~Matrix | ( | ) | [inline] |
T& NOX::LAPACK::Matrix< T >::operator() | ( | int | i, | |
int | j | |||
) | [inline] |
const T& NOX::LAPACK::Matrix< T >::operator() | ( | int | i, | |
int | j | |||
) | const [inline] |
void NOX::LAPACK::Matrix< T >::scale | ( | T | v | ) | [inline] |
Scale the matrix by a constant value.
This is needed to manipulate matrices in the LOCA library routines.
Definition at line 85 of file NOX_LAPACK_Matrix.H.
Referenced by LOCA::LAPACK::Group::augmentJacobianForHomotopy(), and LOCA::LAPACK::Interface::computeShiftedMatrix().
bool NOX::LAPACK::Matrix< T >::print | ( | std::ostream & | stream | ) | const [inline] |
int NOX::LAPACK::Matrix< T >::numRows | ( | ) | const [inline] |
Returns the number of rows in the matrix.
Definition at line 102 of file NOX_LAPACK_Matrix.H.
Referenced by NOX::LAPACK::Group::applyJacobianInverseMultiVector(), LOCA::LAPACK::Group::augmentJacobianForHomotopy(), LOCA::LAPACK::Group::computeComplex(), LOCA::Eigensolver::DGGEVStrategy::computeEigenvalues(), LOCA::LAPACK::Interface::computeShiftedMatrix(), and LOCA::BorderedSolver::LAPACKDirectSolve::setMatrixBlocks().
int NOX::LAPACK::Matrix< T >::numCols | ( | ) | const [inline] |
Returns the number of columns in the matrix.
Definition at line 105 of file NOX_LAPACK_Matrix.H.
Referenced by LOCA::LAPACK::Interface::computeShiftedMatrix().
int NOX::LAPACK::Matrix< T >::p [private] |
This is a p x q matrix.
Definition at line 110 of file NOX_LAPACK_Matrix.H.
Referenced by NOX::LAPACK::Matrix< std::complex< double > >::numRows(), NOX::LAPACK::Matrix< std::complex< double > >::operator()(), NOX::LAPACK::Matrix< std::complex< double > >::print(), and NOX::LAPACK::Matrix< std::complex< double > >::scale().
std::vector<T> NOX::LAPACK::Matrix< T >::entries [private] |
Entries of the matrix.
Definition at line 113 of file NOX_LAPACK_Matrix.H.
Referenced by NOX::LAPACK::Matrix< std::complex< double > >::operator()(), and NOX::LAPACK::Matrix< std::complex< double > >::scale().