|
My Project
|
A simple 2x2 matrix. More...
#include <mia/2d/matrix.hh>
Public Member Functions | |
| T2DMatrix & | operator-= (const T2DMatrix< T > &o) |
| element wise subtract operator | |
| T2DMatrix & | operator= (const T2DMatrix< T > &o) |
| assignment operator | |
| T2DMatrix () | |
| T2DMatrix (const T2DMatrix< T > &o) | |
| copy constructor | |
| T2DMatrix (const T2DVector< T > &x, const T2DVector< T > &y) | |
| T2DMatrix (const T2DVector< T2DVector< T > > &o) | |
| construct the matrix from a 2D vector of 2D vectors | |
| T2DMatrix< T > | transposed () const |
| Public Member Functions inherited from T2DVector< T2DVector< T > > | |
| void | fill (T v) |
| fill all the elements with the given value | |
| T | norm () const |
| T | norm2 () const |
| bool | operator!= (const T2DVector &a) const |
| not equal operator | |
| T2DVector & | operator*= (double a) |
| in place multiplication with a scalar | |
| T2DVector & | operator+= (const T2DVector &a) |
| in place addition | |
| T2DVector | operator- () const |
| T2DVector & | operator-= (const T2DVector &a) |
| in place subtraction | |
| T2DVector & | operator/= (const T2DVector &a) |
| in place element wise division of two 2D vectors | |
| bool | operator== (const T2DVector &a) const |
| Equal operator. | |
| T & | operator[] (int i) |
| void | print (std::ostream &os) const |
| print the vector to a stream with special formatting | |
| double | product () const |
| void | read (std::istream &is) |
| read the properly formatted 2D vector from a stream | |
| size_t | size () const |
| returns the size of this vector, always 2 | |
| T2DVector () | |
Static Public Attributes | |
| static const T2DMatrix | _0 |
| static const T2DMatrix | _1 |
| Static Public Attributes inherited from T2DVector< T2DVector< T > > | |
| static const T2DVector< T > | _0 |
| a static for the value <0,0>. | |
| static const T2DVector< T > | _1 |
| a static for the value <1,1>. | |
Additional Inherited Members | |
| Public Types inherited from T2DVector< T2DVector< T > > | |
| typedef T | value_type |
| typedef for generic access to the element type | |
| Data Fields inherited from T2DVector< T2DVector< T > > | |
| T | x |
| first element | |
| T | y |
| second element | |
A simple 2x2 matrix.
Simple implementation of a 2D Matrix to store 2nd order derivatives.
Definition at line 36 of file 2d/matrix.hh.
| T2DMatrix< T >::T2DMatrix | ( | ) |
Definition at line 78 of file 2d/matrix.hh.
References T2DVector< T2DVector< T > >::T2DVector().
Referenced by operator-=(), operator=(), T2DMatrix(), and transposed().
copy constructor
Definition at line 84 of file 2d/matrix.hh.
References T2DMatrix(), T2DVector< T2DVector< T > >::T2DVector(), T2DVector< T2DVector< T > >::x, and T2DVector< T2DVector< T > >::y.
construct the matrix from a 2D vector of 2D vectors
Definition at line 90 of file 2d/matrix.hh.
References T2DVector< T2DVector< T > >::T2DVector(), T2DVector< T2DVector< T > >::x, and T2DVector< T2DVector< T > >::y.
| T2DMatrix< T >::T2DMatrix | ( | const T2DVector< T > & | x, |
| const T2DVector< T > & | y ) |
construct the matrix from two 2D vectors
| x | 1st row |
| y | 2nd row |
Definition at line 96 of file 2d/matrix.hh.
References T2DVector< T2DVector< T > >::T2DVector(), T2DVector< T2DVector< T > >::x, and T2DVector< T2DVector< T > >::y.
element wise subtract operator
Definition at line 111 of file 2d/matrix.hh.
References T2DMatrix(), T2DVector< T >::x, T2DVector< T2DVector< T > >::x, T2DVector< T >::y, and T2DVector< T2DVector< T > >::y.
assignment operator
Definition at line 103 of file 2d/matrix.hh.
References T2DMatrix(), T2DVector< T >::x, T2DVector< T2DVector< T > >::x, T2DVector< T >::y, and T2DVector< T2DVector< T > >::y.
Definition at line 119 of file 2d/matrix.hh.
References T2DMatrix(), T2DVector< T2DVector< T > >::T2DVector(), and T2DVector< T2DVector< T > >::x.
Definition at line 65 of file 2d/matrix.hh.
Definition at line 64 of file 2d/matrix.hh.