|
GOAT (Geometrical optics application tool) 0.1
|
This class represents a threedimensional (numeric) Matrix as a template. More...
#include <matrix.h>
Public Member Functions | |
| void | binRead (std::ifstream &is) |
| void | binWrite (std::ofstream &os) |
| void | clear () |
| Matrix () | |
| Matrix (Vector< T > a, Vector< T > b, Vector< T > c) | |
| Main constructor for the template class Matrix. This constructor uses three vectors as parameters, which represents the three columns of the matrix. | |
| bool | operator!= (const Matrix &M) |
| T & | operator() (int i, int j) |
| This operator returns the value of the j-th element in the i-th column. | |
| Matrix & | operator= (const Matrix &A) |
| bool | operator== (const Matrix &A) |
Public Attributes | |
| T | M [3][3] |
Friends | |
| Matrix | cutMatrix (const Matrix &M, int i, int j) |
| This function returns a matrix where all elements of the i-th column and the j-th row set to zero. | |
| T | det (const Matrix &A) |
| Calculates the determinant of the matrix A. | |
| Matrix | invert (const Matrix< T > &A) |
| Calculates the inverse of a matrix, if possible. | |
| Matrix | invert (const Matrix< T > &A, bool &invertable) |
| Calculates the inverse of a matrix, if possible. | |
| std::ostream & | operator<< (std::ostream &os, const Matrix &A) |
| Output of the matrix into an ostream Output in the form: M00 M01 M02 M10 M11 M12 M20 M21 M22. | |
| std::istream & | operator>> (std::istream &is, Matrix &A) |
| Input of the matrix from an istream. | |
| T | trace (const Matrix &A) |
| Calculates the trace of matrix A, i.e. the sum over all diagonal elements. | |
| Matrix | transpose (const Matrix &A) |
| Calculates the transpose of the matrix A. | |
special operators | |
These operators are the common definitions of the corresponding matrix operations | |
| Matrix | operator+ (const Matrix &A) |
| Matrix & | operator+= (const Matrix &A) |
| Matrix | operator- () |
| Matrix & | operator-= (const Matrix &A) |
| Matrix & | operator*= (const Matrix &A) |
| Matrix & | operator/= (const T &x) |
| Matrix & | operator*= (const T &x) |
| Matrix | operator- (const Matrix &A, const Matrix &B) |
| Matrix | operator* (const Matrix &A, const Matrix &B) |
| Matrix | operator* (const Matrix &A, const T &x) |
| Matrix | operator* (const T &x, const Matrix &A) |
| Vector< T > | operator* (const Matrix &A, const Vector< T > &r) |
| Vector< T > | operator* (const Vector< T > &r, const Matrix &A) |
| Matrix | operator/ (const Matrix &A, const T &x) |
This class represents a threedimensional (numeric) Matrix as a template.
The Matrix class represents a template class for 3x3 numeric matrices. Operators for standard matrix operation are provided. This class is intended to work with the Vector template class defined in this SDK.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
| T GOAT::maths::Matrix< T >::M[3][3] |