NOX::LAPACK::Matrix Class Reference

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

#include <NOX_LAPACK_Matrix.H>

Collaboration diagram for NOX::LAPACK::Matrix:

[legend]
List of all members.

Public Member Functions

 Matrix ()
 Create an empty matrix.
 Matrix (int m, int n)
 Create a m x n matrix with all entries zero.
 Matrix (int m, int n, int ma, int na)
 Create a m x n matrix that has an allocated dimension of ma x na.
 Matrix (const Matrix &a, CopyType type=NOX::DeepCopy)
 Copy constructor.
 ~Matrix ()
 Destructor.
double & operator() (int i, int j)
 Access the (i,j) entry of A.
const double & operator() (int i, int j) const
 Access the (i,j) entry of A.
void scale (double value)
 Scale the matrix by a constant value.
ostream & leftshift (ostream &stream) const
 Print this object to the given stream.
bool print () const
 Prints out the matrix to the cout stream.
int numRows () const
 Returns the number of rows in the matrix.
int numCols () const
 Returns the number of columns in the matrix.
int numRowsAllocated () const
 Returns the number of rows allocated in the matrix.
int numColsAllocated () const
 Returns the number of columns allocated in the matrix.

Detailed Description

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

The matrix is stored as a vector<double> array.


Member Function Documentation

void Matrix::scale double  value  ) 
 

Scale the matrix by a constant value.

This is needed to manipulate matrices in the LOCA library routines.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:43:32 2008 for NOX by doxygen 1.3.9.1