10#include "tnt/tnt_array2d.h"
36 Matrix(
const int n,
const int m,
const double value = 0.0);
37 Matrix(TNT::Array2D<double> matrix);
43 return p_matrix.dim1();
46 return p_matrix.dim2();
64 return p_matrix[index];
80 TNT::Array2D<double> p_matrix;
Matrix class.
Definition Matrix.h:34
int Columns()
Definition Matrix.h:45
double Determinant()
Compute the determinant of the matrix.
Definition Matrix.cpp:60
std::vector< double > Eigenvalues()
Compute the eigenvalues of the matrix.
Definition Matrix.cpp:203
Matrix Transpose()
Compute the transpose of the matrix.
Definition Matrix.cpp:170
Matrix Subtract(Matrix &matrix)
Subtract the input matrix from this matrix.
Definition Matrix.cpp:121
Matrix Eigenvectors()
Compute the eigenvectors of the matrix and return them as columns of a matrix in ascending order.
Definition Matrix.cpp:224
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:24
double Trace()
Compute the determinant of the matrix.
Definition Matrix.cpp:72
Matrix operator*(Matrix &matrix)
Definition Matrix.h:72
double * operator[](int index)
Definition Matrix.h:63
~Matrix()
Destroys the Matrix object.
Definition Matrix.cpp:40
Matrix Inverse()
Compute the inverse of the matrix.
Definition Matrix.cpp:183
Matrix operator-(Matrix &matrix)
Definition Matrix.h:69
Matrix Add(Matrix &matrix)
Add the two matrices.
Definition Matrix.cpp:104
int Rows()
Definition Matrix.h:42
static Matrix Identity(const int n)
Create an n x n identity matrix.
Definition Matrix.cpp:45
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:140
Matrix Multiply(Matrix &matrix)
Multiply the two matrices.
Definition Matrix.cpp:87
Matrix operator+(Matrix &matrix)
Definition Matrix.h:66
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
Definition Hillshade.cpp:313