#include <Matrix3.hpp>
Inheritance diagram for Ionflux::Tools::Matrix3:
Public Member Functions | |
Matrix3 () | |
Constructor. | |
Matrix3 (double initX11, double initX12, double initX13, double initX21, double initX22, double initX23, double initX31, double initX32, double initX33) | |
Constructor. | |
Matrix3 (const Matrix3 &initMat) | |
Constructor. | |
Matrix3 (const Vector3 &initC1, const Vector3 &initC2, const Vector3 &initC3) | |
Constructor. | |
Matrix3 (const double *initEntry) | |
Constructor. | |
virtual | ~Matrix3 () |
Destructor. | |
virtual void | setEntries (double newX11, double newX12, double newX13, double newX21, double newX22, double newX23, double newX31, double newX32, double newX33) |
Set entries. | |
virtual void | setEntries (const double *newEntry) |
Set entries. | |
virtual void | setColumns (const Vector3 &newC1, const Vector3 &newC2, const Vector3 &newC3) |
Set column vectors. | |
virtual void | setRows (const Vector3 &newR1, const Vector3 &newR2, const Vector3 &newR3) |
Set row vectors. | |
virtual void | setEntry (int rowIndex, int colIndex, double newEntry) |
Set entry. | |
virtual void | setColumn (int colIndex, const Vector3 &newCol) |
Set column vector. | |
virtual void | setRow (int rowIndex, const Vector3 &newRow) |
Set row vector. | |
virtual Vector3 | getColumn (int colIndex) const |
Get column vector. | |
virtual Vector3 | getRow (int rowIndex) const |
Get row vector. | |
virtual double | getEntry (int rowIndex, int colIndex) const |
Get entry. | |
virtual Matrix3 & | operator= (const Matrix3 &newMat) |
Assignment operator. | |
virtual Matrix3 | operator+ (const Matrix3 &otherMat) const |
Add operator. | |
virtual Matrix3 | operator- (const Matrix3 &otherMat) const |
Subtract operator. | |
virtual Matrix3 | operator * (const Matrix3 &otherMat) const |
Multiply operator. | |
virtual Matrix3 & | operator+= (const Matrix3 &otherMat) |
Add operator. | |
virtual Matrix3 & | operator-= (const Matrix3 &otherMat) |
Subtract operator. | |
virtual Matrix3 & | operator *= (const Matrix3 &otherMat) |
Multiply operator. | |
virtual Matrix3 & | operator *= (double a) |
Multiply operator. | |
virtual Vector3 | operator * (const Vector3 &argVec) const |
Multiply operator. | |
virtual Matrix3 | operator * (double a) const |
Multiply operator. | |
virtual Vector3 | operator[] (int rowIndex) const |
Subscript operator. | |
virtual std::string | toString () const |
Create string representation. | |
virtual double | getSubDet (int rowIndex, int colIndex) const |
Calculate subdeterminant. | |
virtual double | getDet () const |
Calculate determinant. | |
virtual Matrix3 | getAdjoint () const |
Get adjoint. | |
virtual Matrix3 & | transpose () |
Transpose. | |
virtual Matrix3 & | invert () |
Invert. | |
virtual Matrix3 & | clear () |
Clear. | |
virtual Matrix3 & | setIdentity () |
Set identity matrix. | |
virtual Matrix3 & | setRotateX (double phi) |
Set rotation matrix (X). | |
virtual Matrix3 & | setRotateY (double phi) |
Set rotation matrix (X). | |
virtual Matrix3 & | setRotateZ (double phi) |
Set rotation matrix (Z). | |
virtual Matrix3 & | setScale (double scaleX, double scaleY, double scaleZ) |
Set scale matrix. | |
virtual void | setX11 (double newX11) |
Set x11 entry. | |
virtual void | setX12 (double newX12) |
Set x13 entry. | |
virtual void | setX13 (double newX13) |
Set x13 entry. | |
virtual void | setX21 (double newX21) |
Set x21 entry. | |
virtual void | setX22 (double newX22) |
Set x22 entry. | |
virtual void | setX23 (double newX23) |
Set x23 entry. | |
virtual void | setX31 (double newX31) |
Set x31 entry. | |
virtual void | setX32 (double newX32) |
Set x32 entry. | |
virtual void | setX33 (double newX33) |
Set x33 entry. | |
virtual double | getX11 () const |
Get x11 entry. | |
virtual double | getX12 () const |
Get x13 entry. | |
virtual double | getX13 () const |
Get x13 entry. | |
virtual double | getX21 () const |
Get x21 entry. | |
virtual double | getX22 () const |
Get x22 entry. | |
virtual double | getX23 () const |
Get x23 entry. | |
virtual double | getX31 () const |
Get x31 entry. | |
virtual double | getX32 () const |
Get x32 entry. | |
virtual double | getX33 () const |
Get x33 entry. | |
Protected Attributes | |
double * | entry |
Entries. |
A matrix in three dimensional space.
|
Constructor. Construct new Matrix3 object. |
|
Constructor. Construct new Matrix3 object.
|
|
Constructor. Construct new Matrix3 object.
|
|
Constructor. Construct new Matrix3 object.
|
|
Constructor. Construct new Matrix3 object.
|
|
Destructor. Destruct Matrix3 object. |
|
Clear. Clear the matrix (set all entries to zero).
|
|
Get adjoint. Get the adjoint of the matrix.
|
|
Get column vector. Get the specified column vector of the matrix.
|
|
Calculate determinant. Calculate the determinant of the matrix.
|
|
Get entry. Get the specified entry of the matrix.
|
|
Get row vector. Get the specified row vector of the matrix.
|
|
Calculate subdeterminant. Calculate a subdeterminant of the matrix. A subdeterminant is obtained by calculating the determinant of the matrix resulting from removing a row and a column from the original matrix.
|
|
Get x11 entry.
|
|
Get x13 entry.
|
|
Get x13 entry.
|
|
Get x21 entry.
|
|
Get x22 entry.
|
|
Get x23 entry.
|
|
Get x31 entry.
|
|
Get x32 entry.
|
|
Get x33 entry.
|
|
Invert. Invert the matrix.
|
|
Multiply operator. Calculate the product of the matrix and a scalar.
|
|
Multiply operator. Apply a matrix to a vector.
|
|
Multiply operator. Calculate the product of two matrices.
|
|
Multiply operator. Calculate the product of the matrix and a scalar.
|
|
Multiply operator. Calculate the product of two matrices.
|
|
Add operator. Add one matrix to another matrix.
|
|
Add operator. Add one matrix to another matrix.
|
|
Subtract operator. Subtract one matrix from another matrix.
|
|
Subtract operator. Subtract one matrix from another matrix.
|
|
Assignment operator. Assign one matrix to another matrix.
Reimplemented in Ionflux::Tools::Cairo::Matrix. |
|
Subscript operator. Access a row vector of the matrix.
|
|
Set column vector. Set the specified column vector of the matrix.
|
|
Set column vectors. Set the column vectors of the matrix.
|
|
Set entries. Set the entries of the matrix.
|
|
Set entries. Set the entries of the matrix.
|
|
Set entry. Set the specified entry of the matrix.
|
|
Set identity matrix. Set the matrix to the identity matrix.
|
|
Set rotation matrix (X). Set the matrix to a rotation matrix around the X axis.
|
|
Set rotation matrix (X). Set the matrix to a rotation matrix around the Y axis.
|
|
Set rotation matrix (Z). Set the matrix to a rotation matrix around the Z axis.
|
|
Set row vector. Set the specified row vector of the matrix.
|
|
Set row vectors. Set the row vectors of the matrix.
|
|
Set scale matrix. Set the matrix to a scale matrix.
|
|
Set x11 entry. Set new value of x11 entry.
|
|
Set x13 entry. Set new value of x13 entry.
|
|
Set x13 entry. Set new value of x13 entry.
|
|
Set x21 entry. Set new value of x21 entry.
|
|
Set x22 entry. Set new value of x22 entry.
|
|
Set x23 entry. Set new value of x23 entry.
|
|
Set x31 entry. Set new value of x31 entry.
|
|
Set x32 entry. Set new value of x32 entry.
|
|
Set x33 entry. Set new value of x33 entry.
|
|
Create string representation. Create a string representation of the matrix (i.e. "[<R1>,<R2>,<R3>]", R1...R3 being the string representations of the row vectors).
|
|
Transpose. Transpose the matrix.
|
|
Entries.
|