NOX Development
Loading...
Searching...
No Matches
NOX::LAPACK::Matrix< T > Class Template Reference

A simple square matrix class for use by NOX::LAPACK::Group. More...

#include <NOX_LAPACK_Matrix.H>

Inheritance diagram for NOX::LAPACK::Matrix< T >:

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.

Detailed Description

template<typename T>
class NOX::LAPACK::Matrix< T >

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.

Constructor & Destructor Documentation

◆ Matrix() [1/2]

template<typename T>
NOX::LAPACK::Matrix< T >::Matrix ( )
inline

Create an empty matrix.

Referenced by Matrix().

◆ Matrix() [2/2]

template<typename T>
NOX::LAPACK::Matrix< T >::Matrix ( const Matrix< T > & a)
inline

Copy constructor.

References Matrix().

Member Function Documentation

◆ numCols()

template<typename T>
int NOX::LAPACK::Matrix< T >::numCols ( ) const
inline

Returns the number of columns in the matrix.

Referenced by LOCA::LAPACK::Interface::computeShiftedMatrix().

◆ numRows()

◆ scale()

template<typename T>
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.

Referenced by LOCA::LAPACK::Group::augmentJacobianForHomotopy(), and LOCA::LAPACK::Interface::computeShiftedMatrix().


The documentation for this class was generated from the following files: