36 double get (
int row,
int col)
const;
48 QVector<double>
operator* (
const QVector<double> other)
const;
54 void set (
int row,
int col,
double value);
65 void addRowToAnotherWithScaling (
int rowFrom,
68 int fold2dIndexes (
int row,
int col)
const;
69 void initialize (
int rows,
71 Matrix inverseCramersRule ()
const;
72 Matrix inverseGaussianElimination ()
const;
73 unsigned int leadingZeros (
int row)
const;
74 void normalizeRow (
int rowToNormalize,
76 void switchRows (
int row1,
81 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 operator*(const Matrix &other) const
Multiplication operator with a matrix.
double determinant() const
Return the determinant of this matrix.
Matrix inverse() const
Return the inverse of this matrix.
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.