42 double get (
int row,
int col)
const;
58 QVector<double>
operator* (
const QVector<double> other)
const;
64 void set (
int row,
int col,
double value);
75 void addRowToAnotherWithScaling (
int rowFrom,
78 int fold2dIndexes (
int row,
int col)
const;
79 void initialize (
int rows,
82 double epsilonThreshold)
const;
83 Matrix inverseGaussianElimination (
int significantDigits,
85 unsigned int leadingZeros (
int row)
const;
86 void normalizeRow (
int rowToNormalize,
88 int significantDigits,
90 void switchRows (
int row1,
97 bool valueFailsEpsilonTest (
double value,
98 double epsilonThreshold)
const;
102 QVector<double> m_vector;
int rows() const
Height of matrix.
Matrix minorReduced(int rowOmit, int colOmit) const
Return minor matrix which is the original with the specified row and column omitted. The name 'minor' is a reserved word.
Matrix inverse(int significantDigits, MatrixConsistent &matrixConsistent) const
Return the inverse of this matrix.
Matrix operator*(const Matrix &other) const
Multiplication operator with a matrix.
double determinant() const
Return the determinant of this matrix.
MatrixConsistent
Indicates if matrix is consistent (i.e. has at least one solution)
Matrix & operator=(const Matrix &matrix)
Assignment operator.
Matrix transpose() const
Return the transpose of the current matrix.
Matrix class that supports arbitrary NxN size.
QString toString() const
Dump matrix to a string.
int cols() const
Width of matrix.
void set(int row, int col, double value)
Set (row, col) element.