|
| Matrix () |
| Constructs a 0x0 matrix. More...
|
|
| Matrix (const Matrix &other) |
| Copy constructor. More...
|
|
| Matrix (int n, int m) |
| Constructs a nxm matrix. More...
|
|
| ~Matrix () |
| Destructs the matrix. More...
|
|
void | save (QXmlStreamWriter &xml, const QString &role) const |
| Saves the matrix in xml format with the given value of the role attribute. More...
|
|
void | load (QXmlStreamReader &xml) |
| Loads the matrix in xml format. More...
|
|
int | getRows () const |
| Returns the number of rows. More...
|
|
int | getCols () const |
| Returns the number of columns. More...
|
|
Matrix & | operator= (const Matrix &other) |
| Assignment. More...
|
|
void | setSize (int n, int m) |
| Changes the size of the matrix. More...
|
|
void | setTo (double v) |
| Sets all matrix elements to v. More...
|
|
void | set (int i, int j, double v) |
| Sets a matrix element. More...
|
|
double | get (int i, int j) const |
| Returns a matrix element. More...
|
|
void | swapRows (int a, int b) |
| Exchanges the rows with indices a and b. More...
|
|
void | subtract (const Matrix &b, Matrix &out) const |
| Component-wise subtraction. More...
|
|
void | add (const Matrix &b, Matrix &out) const |
| Component-wise addition. More...
|
|
void | multiply (double b, Matrix &out) const |
| Multiplication with scalar factor. More...
|
|
void | multiply (const Matrix &b, Matrix &out) const |
| Matrix multiplication. More...
|
|
void | transpose (Matrix &out) |
| Matrix transpose. More...
|
|
double | determinant () const |
| Calculates the determinant. More...
|
|
bool | invert (Matrix &out) const |
| Tries to inverts the matrix. More...
|
|
void | print () const |
| Outputs the matrix to stdout for debugging purposes. More...
|
|
Dynamically sized matrix of doubles.