14 enum MatrixConsistent {
42 double get (
int row,
int col)
const;
49 MatrixConsistent &matrixConsistent)
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,
81 Matrix inverseCramersRule (MatrixConsistent &matrixConsistent,
82 double epsilonThreshold)
const;
83 Matrix inverseGaussianElimination (MatrixConsistent &matrixConsistent,
84 double epsilonThreshold)
const;
85 unsigned int leadingZeros (
int row)
const;
86 void normalizeRow (
int rowToNormalize,
88 MatrixConsistent &matrixConsistent,
89 double epsilonThreshold);
90 void switchRows (
int row1,
97 bool valueFailsEpsilonTest (
double value,
98 double epsilonThreshold)
const;
102 QVector<double> m_vector;
Matrix operator*(const Matrix &other) const
Multiplication operator with a matrix.
Matrix transpose() const
Return the transpose of the current matrix.
Matrix & operator=(const Matrix &matrix)
Assignment operator.
Matrix inverse(int significantDigits, MatrixConsistent &matrixConsistent) const
Return the inverse of this 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.
double determinant() const
Return the determinant of this matrix.
int cols() const
Width of matrix.
Matrix class that supports arbitrary NxN size.
int rows() const
Height of matrix.
QString toString() const
Dump matrix to a string.