Physsim::MatrixNN Class Reference

A generic square matrix. More...

#include <MatrixNN.h>

Inheritance diagram for Physsim::MatrixNN:

Physsim::MatrixN Physsim::Matrix3 Physsim::Matrix4 List of all members.

Public Member Functions

 MatrixNN ()
 Default constructor - constructs an empty matrix.
 MatrixNN (unsigned dim)
 Constructs a dim*dim matrix.
 MatrixNN (const MatrixN &source)
 Constructs a MatrixNN object from a MatrixN object.
 MatrixNN (const MatrixNN &source)
 Copy constructor.
 MatrixNN (unsigned int dim, const boost::shared_array< Real > array)
void invert ()
 Sets this matrix to its inverse.
bool is_symmetric (Real tolerance) const
 Checks whether the given matrix is symmetric to the specified tolerance.
void set_identity ()
 Sets this to the identity matrix.
virtual void operator= (const MatrixN &source)
 Sets this matrix to that of another.
virtual void operator= (const MatrixNN &source)

Static Public Member Functions

static MatrixNN invert (const MatrixNN &m)
 Determines the inverse of the given matrix.
static MatrixNN zero (unsigned dim)
 Returns the zero matrix.
static MatrixNN identity (unsigned dim)
 Returns the identity matrix.

Detailed Description

A generic square matrix.


Member Function Documentation

MatrixNN MatrixNN::zero ( unsigned  n  )  [static]

Returns the zero matrix.

Parameters:
n the number of rows / columns of the matrix
Returns:
a NxN zero matrix

MatrixNN MatrixNN::identity ( unsigned  dim  )  [static]

Returns the identity matrix.

Parameters:
n the number of rows / columns of the matrix
Returns:
a NxN identity matrix


The documentation for this class was generated from the following files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1