26 #include "tnt/tnt_array2d.h" 52 Matrix(
const int n,
const int m,
const double value = 0.0);
53 Matrix(TNT::Array2D<double> matrix);
59 return p_matrix.dim1();
62 return p_matrix.dim2();
80 return p_matrix[index];
96 TNT::Array2D<double> p_matrix;
99 std::ostream &
operator<<(std::ostream &os, Matrix &matrix);
Matrix Eigenvectors()
Compute the eigenvectors of the matrix and return them as columns of a matrix in ascending order...
Definition: Matrix.cpp:240
Matrix Add(Matrix &matrix)
Add the two matrices.
Definition: Matrix.cpp:120
int Rows()
Definition: Matrix.h:58
Matrix(const int n, const int m, const double value=0.0)
Constructs an n x m Matrix containing the specified default value.
Definition: Matrix.cpp:40
double Determinant()
Compute the determinant of the matrix.
Definition: Matrix.cpp:76
Matrix Transpose()
Compute the transpose of the matrix.
Definition: Matrix.cpp:186
double * operator[](int index)
Definition: Matrix.h:79
Matrix Multiply(Matrix &matrix)
Multiply the two matrices.
Definition: Matrix.cpp:103
double Trace()
Compute the determinant of the matrix.
Definition: Matrix.cpp:88
Matrix operator-(Matrix &matrix)
Definition: Matrix.h:85
Matrix operator*(Matrix &matrix)
Definition: Matrix.h:88
Matrix Inverse()
Compute the inverse of the matrix.
Definition: Matrix.cpp:199
~Matrix()
Destroys the Matrix object.
Definition: Matrix.cpp:56
Matrix Subtract(Matrix &matrix)
Subtract the input matrix from this matrix.
Definition: Matrix.cpp:137
std::vector< double > Eigenvalues()
Compute the eigenvalues of the matrix.
Definition: Matrix.cpp:219
Matrix operator+(Matrix &matrix)
Definition: Matrix.h:82
Matrix MultiplyElementWise(Matrix &matrix)
Multiply the two matrices element-wise (ie compute C such that C[i][j] = A[i][j]*B[i][j]) ...
Definition: Matrix.cpp:156
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
static Matrix Identity(const int n)
Create an n x n identity matrix.
Definition: Matrix.cpp:61
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition: Hillshade.cpp:308
int Columns()
Definition: Matrix.h:61
Matrix class.
Definition: Matrix.h:50