#include <irtkMatrix.h>


Definition at line 27 of file irtkMatrix.h.
Public Member Functions | |
| irtkMatrix () | |
| Default constructor. | |
| irtkMatrix (int, int) | |
| Constructor for given number of rows and columns. | |
| irtkMatrix (const irtkMatrix &) | |
| Copy constructor. | |
| ~irtkMatrix () | |
| Destructor. | |
| void | Initialize (int, int) |
| Initialize matrix with number of rows and columns. | |
| int | Rows () const |
| Returns number of rows. | |
| int | Cols () const |
| Returns number of columns. | |
| void | Put (int, int, double) |
| Puts matrix value. | |
| double | Get (int, int) const |
| Gets matrix value. | |
| double & | operator() (int, int) |
| Puts matrix value. | |
| double | operator() (int, int) const |
| Gets matrix value. | |
| irtkMatrix | operator() (int, int, int, int) |
| Access matrix get operator. | |
| void | operator() (irtkMatrix &, int, int) |
| Access matrix put operator. | |
| irtkMatrix & | operator-= (const double &) |
| Subtraction of a double. | |
| irtkMatrix & | operator+= (const double &) |
| Addition of a double. | |
| irtkMatrix & | operator *= (const double &) |
| Multiplication with a double. | |
| irtkMatrix & | operator/= (const double &) |
| Division by a double. | |
| irtkMatrix | operator- (const double &) |
| Return result of subtraction of a double. | |
| irtkMatrix | operator+ (const double &) |
| Return result of addition of a double. | |
| irtkMatrix | operator * (const double &) |
| Return result of multiplication with a double. | |
| irtkMatrix | operator/ (const double &) |
| Return result of division by a double. | |
| irtkMatrix & | operator= (const irtkMatrix &) |
| Matrix copy operator. | |
| irtkMatrix & | operator-= (const irtkMatrix &) |
| Matrix subtraction operator. | |
| irtkMatrix & | operator+= (const irtkMatrix &) |
| Matrix addition operator. | |
| irtkMatrix & | operator *= (const irtkMatrix &) |
| Matrix multiplication operator. | |
| irtkMatrix | operator- (const irtkMatrix &) |
| Return result of matrix subtraction. | |
| irtkMatrix | operator+ (const irtkMatrix &) |
| Return result of matrix addition. | |
| irtkMatrix | operator * (const irtkMatrix &) |
| Return result of matrix multiplication. | |
| irtkMatrix | operator! (void) |
| Matrix inversion operator. | |
| irtkMatrix | operator~ (void) |
| Matrix transpose operator. | |
| int | operator== (const irtkMatrix &) |
| Matrix comparison operator =. | |
| int | operator!= (const irtkMatrix &) |
| Comparison operator != (if USE_STL is defined, negate == operator). | |
| double | Norm (void) const |
| Calculate norm of matrix. | |
| double | InfinityNorm (void) const |
| double | Det () const |
| Calculate determinant of matrix. | |
| void | SVD (irtkMatrix &, irtkVector &, irtkMatrix &) const |
| Calculate SVD of matrix. | |
| void | Ident () |
| Identity matrix. | |
| bool | IsIdentity () const |
| Returns true if the matrix is an identity matrix. | |
| void | Invert () |
| Invert of matrix. | |
| void | Transpose () |
| Transpose matrix. | |
| void | Eigenvalues (irtkMatrix &, irtkVector &) |
| Calculate eigenvalues and eigenvectors of matrix. | |
| void | LeastSquaresFit (const irtkVector &, irtkVector &) |
| Calculate least square fit via SVD. | |
| void | Print () |
| Print matrix. | |
| void | Read (char *) |
| Read matrix from file. | |
| void | Write (char *) |
| Write matrix to file. | |
| void | Import (char *, int, int) |
| Import matrix from text file (requires no. of expected rows and cols). | |
| void | Matrix2NR (float **) const |
| Conversion to numerical recipes matrix (memory must be allocated). | |
| void | Matrix2NR (double **) const |
| void | NR2Matrix (float **) |
| Conversion from numerical recipes matrix. | |
| void | NR2Matrix (double **) |
| irtkVector | operator * (const irtkVector &) |
| Return result of multiplication of matrix and vector. | |
Protected Attributes | |
| int | _rows |
| Number of rows. | |
| int | _cols |
| Number of colums. | |
| double ** | _matrix |
| Data. | |
Friends | |
| irtkMatrix | expm (irtkMatrix) |
| irtkMatrix | logm (irtkMatrix) |
| irtkMatrix | sqrtm (irtkMatrix) |
| irtkMatrix | FrechetMean (irtkMatrix *, int, int=10) |
| irtkMatrix | FrechetMean (irtkMatrix *, double *, int, int=10) |
| ostream & | operator<< (ostream &, const irtkMatrix &) |
| Interface to output stream. | |
| istream & | operator>> (istream &, irtkMatrix &) |
| Interface to input stream. | |