Physsim::SMatrixN Class Reference

A generic, possibly non-square spatial algebra matrix. More...

#include <SMatrixN.h>

Inheritance diagram for Physsim::SMatrixN:

Physsim::MatrixN Physsim::SMatrix6 List of all members.

Public Member Functions

 SMatrixN ()
 Default constructor - constructs an empty matrix.
 SMatrixN (unsigned rows, unsigned columns)
 Constructs a rows x columns dimensional matrix.
 SMatrixN (const MatrixN &source)
 Copy constructor.
 SMatrixN (const SMatrixN &source)
 Copy constructor.
 SMatrixN (unsigned rows, unsigned columns, const boost::shared_array< Real > array)
 Constructs a matrix from an array.
virtual void transpose ()
 Sets this matrix to its transpose.
void operator= (const SMatrixN &source)
SMatrixN operator * (const SMatrixN &m) const

Static Public Member Functions

static SMatrixN transpose (const SMatrixN &m)
 Determines the transpose of the matrix.

Detailed Description

A generic, possibly non-square spatial algebra matrix.

The underlying data is stored in a column-major (e.g., the element at row 1, column 0 is element "1").


Constructor & Destructor Documentation

SMatrixN::SMatrixN ( unsigned  rows,
unsigned  columns 
)

Constructs a rows x columns dimensional matrix.

Sets matrix to the rows x columns dimensional zero matrix

SMatrixN::SMatrixN ( unsigned  rows,
unsigned  columns,
const boost::shared_array< Real >  array 
)

Constructs a matrix from an array.

Parameters:
rows the number of rows of the matrix
columns the number of columns of the matrix
array an array of rows*columns Real values in row-major format


Member Function Documentation

SMatrixN SMatrixN::transpose ( const SMatrixN m  )  [static]

Determines the transpose of the matrix.

Note:
from [Featherstone, 1987], p. 55


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