Go::MatrixXD< T, Dim > Class Template Reference
['utils' - a collection of useful math and programming tools]

Square n-dimensional (compile time constant dim) matrix. More...

#include <MatrixXD.h>

List of all members.

Public Member Functions

 MatrixXD ()
 Default constructor.
 ~MatrixXD ()
 Default destructor.
T & operator() (int row, int col)
 Element access operator.
T ** get ()
 Access data array directly.
const T & operator() (int row, int col) const
 Const element access operator.
void zero ()
 Set all elements to zero.
void identity ()
 Identity matrix.
void transpose ()
 Transpose matrix.
void setToRotation (T angle, T x, T y, T z)
 Similar to glRotate(), sets the matrix to be a rotation of angle radians about the axis given by (x, y, z).
void setToRotation (const Vector3D &p, const Vector3D &q)
 Sets the matrix to be a rotation that takes the point p to q.
MatrixXD operator * (const MatrixXD &other) const
 Matrix-matrix multiplication.
MatrixXDoperator *= (const MatrixXD &other)
 Multiply this matrix with a matrix.
MatrixXD operator * (T scalar) const
 Multiplication by a scalar.
MatrixXDoperator *= (T scalar)
 Multiplication by a scalar.
MatrixXD operator+ (const MatrixXD &other) const
 Addition.
MatrixXDoperator+= (const MatrixXD &other)
 Add a matrix to this matrix.
MatrixXD operator- () const
 Negation.
template<class VectorType>
VectorType operator * (const VectorType &vec) const
 Matrix-vector multiplication.
det () const
 Determinant.
trace () const
 Trace.
frobeniusNorm () const
 Frobenius norm.
MatrixXD< T, Dim-1 > submatrix (int r, int c) const
 Submatrix with given row and column removed.
template<>
void setToRotation (double angle, double x, double y, double z)


Detailed Description

template<typename T, int Dim>
class Go::MatrixXD< T, Dim >

Square n-dimensional (compile time constant dim) matrix.

Definition at line 54 of file MatrixXD.h.


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:19 2007 for GoTools Core Library by  doxygen 1.5.1