Engauge Digitizer  2
Public Member Functions | List of all members
Matrix Class Reference

Matrix class that supports arbitrary NxN size. More...

#include <Matrix.h>

Public Member Functions

 Matrix (int N)
 Simple constructor of square matrix with initialization to identity matrix.
 
 Matrix (int rows, int cols)
 Simple constructor of rectangular matrix with initialization to zero matrix.
 
 Matrix (const Matrix &other)
 Copy constructor.
 
Matrixoperator= (const Matrix &matrix)
 Assignment operator.
 
int cols () const
 Width of matrix.
 
double determinant () const
 Return the determinant of this matrix.
 
double get (int row, int col) const
 Return (row, col) element.
 
Matrix inverse () 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.
 
Matrix operator* (const Matrix &other) const
 Multiplication operator with a matrix.
 
QVector< double > operator* (const QVector< double > other) const
 Multiplication operator with a vector.
 
int rows () const
 Height of matrix.
 
void set (int row, int col, double value)
 Set (row, col) element.
 
QString toString () const
 Dump matrix to a string.
 
Matrix transpose () const
 Return the transpose of the current matrix.
 

Detailed Description

Matrix class that supports arbitrary NxN size.

Definition at line 14 of file Matrix.h.


The documentation for this class was generated from the following files: