#include <matrices.h>
Public Member Functions | |
SSMatrix () | |
SSMatrix (SSMatrix &M) | |
SSMatrix (int Size, int InitMode) | |
SSMatrix (int NbLines, int NbColumns, int InitMode) | |
~SSMatrix () | |
Destroy () | |
SSMatrix & | Redim (int NbLines, int NbColumns) |
SSMatrix & | Multiply (float scalar) |
SSMatrix & | Multiply (const SSMatrix &B) |
SSMatrix & | Multiply (const SSMatrix &B, const SSMatrix &C) |
SSMatrix & | Kronecker (const SSMatrix &B) |
SSMatrix & | Kronecker (const SSMatrix &B, const SSMatrix &C) |
Print () | |
SSMatrix & | operator= (const SSMatrix &m) |
bool | operator== (const SSMatrix &m) |
Public Attributes | |
float ** | _Values |
int | _NbLines |
int | _NbColumns |
Used to manage every matrix of the program (transformation matrix, projected matrix,...)
SSMatrix::SSMatrix | ( | ) |
Creates empty matrix
SSMatrix::SSMatrix | ( | SSMatrix & | M | ) |
Copy constructor.Duplicates value table
SSMatrix::SSMatrix | ( | int | Size, | |
int | InitMode | |||
) |
Square matrix constructor. Init mode : 1:identity ; 0 : zeros
SSMatrix::SSMatrix | ( | int | NbLines, | |
int | NbColumns, | |||
int | InitMode | |||
) |
Matrix constructor. Init mode : 1:identity ; 0:zeros
SSMatrix::~SSMatrix | ( | ) |
Calls Destroy to destroy value table
SSMatrix::Destroy | ( | ) |
Clears value table
Multiplies matrixes with the Kronecker product : this = kron(B,C)
Multiplies matrixes with the Kronecker product : this = kron(this,B)
Multiplies matrixes among themselves : this = B*C
Multiplies matrixes among themselves : this=this*B
SSMatrix & SSMatrix::Multiply | ( | float | scalar | ) |
Multiplies all values by scalar
bool SSMatrix::operator== | ( | const SSMatrix & | m | ) | [inline] |
Equality operator
SSMatrix::Print | ( | ) |
Prints dimension and values
SSMatrix & SSMatrix::Redim | ( | int | NbLines, | |
int | NbColumns | |||
) |
Changes matrix dimensions, keeping values where possible
The number of columns of the matrix
The number of lines of the matrix
float** SSMatrix::_Values |
The values contained in the matrix