|
Matrix & | AddToCol (int, double) |
| Add scalar to values in specified column.
|
|
Matrix & | AddToRow (int, double) |
| Add scalar to values in specified row.
|
|
Matrix & | Adjugate (double &) |
| Adjugate matrix and return determinant.
|
|
void | Clear () |
| Free memory.
|
|
double * | Col (int c) |
| Get pointer to matrix entries in specified column.
|
|
const double * | Col (int c) const |
| Get pointer to matrix entries in specified column.
|
|
int | ColIndex (int) const |
| Get column index of element given its linear index.
|
|
double | ColMax (int) const |
| Maximum value in specified column.
|
|
double | ColMean (int) const |
| Mean of row values in specified column.
|
|
double | ColMin (int) const |
| Minimum value in specified column.
|
|
void | ColRange (int, double &, double &) const |
| Minimum and maximum value in specified column.
|
|
int | Cols () const |
| Get number of columns.
|
|
double | ColStd (int) const |
| Standard deviation of row values in specified column.
|
|
double | ColSum (int) const |
| Sum of row values in specified column.
|
|
double | ColVar (int) const |
| Variance of row values in specified column.
|
|
double | Det () const |
| Calculate determinant of matrix.
|
|
double | Det3x3 () const |
| Calculate determinant of a 3x3 matrix.
|
|
bool | Eigenvalues (Matrix &, Vector &, Matrix &) const |
|
Matrix | Exp () const |
|
double | Get (int) const |
| Get value of element with specified linear index.
|
|
double | Get (int, int) const |
| Get value of element in specified row and column.
|
|
double * | GetPointerToElements (int r=0, int c=0) |
|
const double * | GetPointerToElements (int r=0, int c=0) const |
|
Matrix & | Ident () |
| Set to identity matrix.
|
|
void | Import (const char *, int, int) |
| Import matrix from text file (requires no. of expected rows and cols)
|
|
int | Index (int, int) const |
| Get linear index of element given its row and column indices.
|
|
void | Initialize (int, int=-1, double *=NULL) |
| Initialize matrix with number of rows and columns.
|
|
Matrix | Inverse (bool use_svd_if_singular=true) const |
| Get inverse matrix.
|
|
Matrix & | Invert (bool use_svd_if_singular=true) |
| Invert matrix.
|
|
bool | IsDiagonalizable () const |
| Whether matrix is diagonalizable.
|
|
bool | IsIdentity () const |
| Returns true if the matrix is an identity matrix.
|
|
bool | IsSquare () const |
| Whether matrix is square.
|
|
bool | IsSymmetric () const |
| Whether matrix is symmetric.
|
|
void | LeastSquaresFit (const Vector &, Vector &) const |
| Calculate least square fit via SVD.
|
|
Matrix | Log () const |
| Matrix logarithm.
|
|
void | LU (Matrix &, Matrix &, double &) const |
| Calculate LU decomposition of square matrix.
|
|
void | MakeSymmetric () |
| Make square matrix symmetric by adding its transpose and divide by 2.
|
|
| Matrix () |
| Default constructor.
|
|
| Matrix (int, int=-1, double *=NULL) |
| Constructor for given number of rows and columns.
|
|
| Matrix (const Vector &) |
| Convert column vector to matrix.
|
|
| Matrix (const PointSet &, bool twoD=false) |
|
| Matrix (const Matrix &) |
| Copy constructor.
|
|
| Matrix (const Matrix3x3 &) |
| Construct from 3x3 matrix.
|
|
double | Norm () const |
| Calculate norm of matrix.
|
|
int | NumberOfElements () const |
| Get number of elements.
|
|
Matrix | operator! () |
| Matrix inversion operator.
|
|
bool | operator!= (const Matrix &) const |
| Matrix inequality.
|
|
Array< int > | operator!= (double) const |
|
double & | operator() (int) |
| Get reference to element with specified linear index.
|
|
const double & | operator() (int) const |
| Get const reference to element with specified linear index.
|
|
double & | operator() (int, int) |
| Get reference to element in specified row and column.
|
|
const double & | operator() (int, int) const |
| Get const reference to element in specified row and column.
|
|
Matrix | operator() (int, int, int, int) const |
| Get submatrix.
|
|
void | operator() (Matrix &, int, int) |
| Set submatrix.
|
|
Matrix | operator* (double) const |
| Return result of multiplication with a double.
|
|
Vector | operator* (const Vector &) const |
| Right-multiply matrix with vector.
|
|
Matrix | operator* (const Matrix &) const |
| Return result of matrix multiplication.
|
|
Matrix & | operator*= (double) |
| Multiplication with a double.
|
|
Matrix & | operator*= (const Matrix &) |
| Matrix multiplication operator.
|
|
Matrix | operator+ (double) const |
| Return result of addition of a double.
|
|
Matrix | operator+ (const Matrix &) const |
| Return result of matrix addition.
|
|
Matrix & | operator+= (double) |
| Addition of a double.
|
|
Matrix & | operator+= (const Matrix &) |
| Matrix addition operator.
|
|
Matrix | operator- (double) const |
| Return result of subtraction of a double.
|
|
Matrix | operator- (const Matrix &) const |
| Return result of matrix subtraction.
|
|
Matrix & | operator-= (double) |
| Subtraction of a double.
|
|
Matrix & | operator-= (const Matrix &) |
| Matrix subtraction operator.
|
|
Matrix | operator/ (double) const |
| Return result of division by a double.
|
|
Matrix & | operator/= (double) |
| Division by a double.
|
|
Array< int > | operator< (double) const |
|
Array< int > | operator<= (double) const |
|
Matrix & | operator= (double) |
| Assign scalar value to all elements.
|
|
Matrix & | operator= (const Matrix &) |
| Assignment operator.
|
|
Matrix & | operator= (const Matrix3x3 &) |
| Assignment operator.
|
|
bool | operator== (const Matrix &) const |
| Matrix equality.
|
|
Array< int > | operator== (double) const |
|
Array< int > | operator> (double) const |
|
Array< int > | operator>= (double) const |
|
Matrix | operator~ () |
| Matrix transpose operator.
|
|
Matrix & | PermuteCols (Array< int >) |
| Permute columns.
|
|
Matrix & | PermuteRows (Array< int >) |
| Permute rows.
|
|
void | Print (Indent=0) const |
| Print matrix.
|
|
void | Print (ostream &, Indent=0) const |
| Print matrix.
|
|
Matrix | PseudoInverse () const |
| Get pseudo inverse of matrix.
|
|
Matrix & | PseudoInvert () |
| Invert matrix using pseudo inverse.
|
|
void | Put (int, double) |
| Set value of element with specified linear index.
|
|
void | Put (int, int, double) |
| Set value of element in specified row and column.
|
|
double * | RawPointer (int r=0, int c=0) |
| Get pointer to linear memory which stores matrix elements in column-major order.
|
|
const double * | RawPointer (int r=0, int c=0) const |
| Get pointer to linear memory which stores matrix elements in column-major order.
|
|
void | Read (const char *) |
| Read matrix from file.
|
|
void | Resize (int, int=-1) |
| Resize matrix preserving existing entries.
|
|
int | RowIndex (int) const |
| Get row index of element given its linear index.
|
|
double | RowMax (int) const |
| Maximum value in specified row.
|
|
double | RowMean (int) const |
| Mean of column values in specified row.
|
|
double | RowMin (int) const |
| Minimum value in specified row.
|
|
void | RowRange (int, double &, double &) const |
| Minimum and maximum value in specified row.
|
|
int | Rows () const |
| Get number of rows.
|
|
double | RowStd (int) const |
| Standard deviation of column values in specified row.
|
|
double | RowSum (int) const |
| Sum of column values in specified row.
|
|
double | RowVar (int) const |
| Variance of column values in specified row.
|
|
Matrix & | ScaleCol (int, double) |
| Scale column by a scalar.
|
|
Matrix & | ScaleRow (int, double) |
| Scale row by a scalar.
|
|
Pair< int, int > | Size () const |
| Get matrix size in each dimension.
|
|
Matrix | Sqrt () const |
| Matrix square root.
|
|
void | SubIndex (int, int &, int &) const |
| Get row and column index of element given its linear index.
|
|
Pair< int, int > | SubIndex (int) const |
| Get row and column index of element given its linear index.
|
|
void | SVD (Matrix &, Vector &, Matrix &) const |
| Calculate singular value decomposition.
|
|
Matrix | SVDInverse () const |
| Get inverse of (singular) matrix using SVD.
|
|
Matrix & | SVDInvert () |
| Invert (singular) matrix using SVD.
|
|
void | SymmetricEigen (Matrix &, Vector &) const |
| Calculate eigendecomposition of symmetric matrix.
|
|
Matrix3x3 | To3x3 () const |
| Get upper left 3x3 sub-matrix.
|
|
double | Trace () const |
| Calculate trace of matrix.
|
|
Matrix & | Transpose () |
| Transpose matrix.
|
|
Matrix | Transposed () const |
| Get transposed matrix.
|
|
void | Write (const char *) const |
| Write matrix to file.
|
|
bool | WriteMAT (const char *, const char *="A") const |
|
void | Zero () |
| Set elements to zero.
|
|
| ~Matrix () |
| Destructor.
|
|
virtual const char * | NameOfClass () const =0 |
| Get name of class, which this object is an instance of.
|
|
virtual ParameterList | Parameter () const |
| Get parameter name/value pairs.
|
|
bool | Parameter (const ParameterList &) |
| Set parameters from name/value pairs.
|
|
virtual bool | Set (const char *name, const char *value) |
|
virtual | ~Object () |
| Destructor.
|
|