#include <Ptm_Type.h>
Public Methods | |
| Ptm(Type) () | |
| Ptm(Type) (const int n) | |
| Ptm(Type) (const int m, const int n) | |
| Ptm(Type) (const Ptv(Type) &v1) | |
| Ptm(Type) (const Ptv(Type) &v1, const Ptv(Type) &v2) | |
| Ptm(Type) (const Ptv(Type) &v1, const Ptv(Type) &v2, const Ptv(Type) &v3) | |
| Ptm(Type) (const Ptm(Type) &T) | |
| ~Ptm(Type) () | |
| bool | ok () const |
| void | redim (int n) |
| void | redim (int m, int n) |
| void | redim (const Ptv(Type) &v1) |
| void | redim (const Ptv(Type) &v1, const Ptv(Type) &v2) |
| void | redim (const Ptv(Type) &v1, const Ptv(Type) &v2, const Ptv(Type) &v3) |
| void | redim (const Ptm(Type) &T) |
| void | fill (Type *value) |
| void | fill (Type value) |
| void | mult (Type value) |
| int | getNoRows () const |
| int | getNoColumns () const |
| int | size () const |
| Type& | operator() (int i, int j) |
| Type | operator() (int i, int j) const |
| Ptv(Type)& | operator() (int i) |
| Ptv(Type) | operator() (int i) const |
| Type* | getPtr () |
| Ptm(Type)& | operator= (const Type &value) |
| Ptm(Type)& | operator= (const Ptm(Type) &T) |
| bool | operator== (const Ptm(Type) &T) const |
| bool | operator!= (const Ptm(Type) &T) const |
| bool | eq (const Ptm(Type) &T, real tolerance=comparison_tolerance) const |
| bool | neq (const Ptm(Type) &T, real tolerance=comparison_tolerance) const |
| Ptv(Type) | operator * (const Ptv(Type) &X) const |
| Ptm(Type) | operator * (const Ptm(Type) &T) const |
| void | prod (Ptv(Type) &X) const |
| void | prod (Ptv(Type) &Y, const Ptv(Type) &X, bool add_to) const |
| void | prod (Ptm(Type) &R, const Ptm(Type) &T, bool add_to) const |
| void | add (Type a, const Ptm(Type) &X) |
| void | add (const Ptm(Type) &X) |
| void | sub (const Ptm(Type) &X) |
| Type | prod (const Ptv(Type) &X, const Ptv(Type) &Y) const |
| Type | inner (const Ptm(Type) &T) const |
| real | inner () const |
| Type | trace () const |
| void | transpose () |
| void | symmetric () |
| void | print (Os os, const char *=NULL) const |
NAME: Ptm(Type) - simple matrix used for point transformations
DESCRIPTION:
The class represents a matrix that matches class "Ptv" and is used for point transformations (2x2 and 3x3 matrices) and for representing gradient tensors of vector fields (nx2 and nx3 matrices). The class has a static array hardcoded (of length "tDIM") and currently no dynamic alternative is available for larger matrices (to be added later when neccesary).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See documentation of one of the overloaded functions. |
|
|
finds the sum of two matrices, see comments in function declarations. |
|
|
|
|
|
See documentation of one of the overloaded functions. |
|
|
fill all entries with the supplied value. |
|
|
get the number of columns in the matrix |
|
|
get the number of rows in the matrix |
|
|
get access to the vector holding the matrix elements. |
|
|
See documentation of one of the overloaded functions. |
|
|
finds the scalar product or double-dot product of two matrices, i.e. the sum of the products of the individual matrix elements. |
|
|
multiply all entries with the supplied value. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print this matrix with the supplied heading |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
performs matrix-vector and matrix-matrix multiplications. Several overloaded versions exist, see comments in function declarations. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
get the total number of entries in the matrix. |
|
|
finds the difference between two matrices, see comments in function declarations. |
|
|
make the current matrix symmetric, that is
this = 0.5*(this+this^t)
|
|
|
returns the sum of the diagonal elements. |
|
|
transpose the current matrix object. |