|
Jpp
16.0.1
the software that should make you happy
|
2 x 2 matrix More...
#include <JMatrix2D.hh>
Public Member Functions | |
| JMatrix2D () | |
| Default constructor. More... | |
| JMatrix2D (const double __a00, const double __a01, const double __a10, const double __a11) | |
| Contructor. More... | |
| JMatrix2D & | setIdentity () |
| Set to identity matrix. More... | |
| void | set (const JMatrix2D &A) |
| Set matrix. More... | |
| JMatrix2D & | reset () |
| Set matrix to the null matrix. More... | |
| JMatrix2D & | transpose () |
| Transpose. More... | |
| JMatrix2D & | negate () |
| Negate matrix. More... | |
| JMatrix2D & | add (const JMatrix2D &A) |
| Matrix addition. More... | |
| JMatrix2D & | sub (const JMatrix2D &A) |
| Matrix subtraction. More... | |
| JMatrix2D & | mul (const double factor) |
| Scale matrix. More... | |
| JMatrix2D & | div (const double factor) |
| Scale matrix. More... | |
| JMatrix2D & | mul (const JMatrix2D &A, const JMatrix2D &B) |
| Matrix multiplication. More... | |
| bool | equals (const JMatrix2D &A, const double eps=std::numeric_limits< double >::min()) const |
| Equality. More... | |
| bool | isIdentity (const double eps=std::numeric_limits< double >::min()) const |
| Test identity. More... | |
| double | getDeterminant () const |
| Get determinant of matrix. More... | |
| void | transform (double &__x, double &__y) const |
| Transform. More... | |
| JMatrix2D & | mul (const JNullType &object) |
| Multiply with object. More... | |
Static Public Member Functions | |
| static const JMatrix2D & | getInstance () |
| Get reference to unique instance of this class object. More... | |
| static const JMatrix2D & | getIdentity () |
| Get reference to unique instance of this class object. More... | |
Public Attributes | |
| double | a00 |
| double | a01 |
| double | a10 |
| double | a11 |
Friends | |
| JReader & | operator>> (JReader &in, JMatrix2D &matrix) |
| Read matrix from input. More... | |
| JWriter & | operator<< (JWriter &out, const JMatrix2D &matrix) |
| Write matrix to output. More... | |
| std::ostream & | operator<< (std::ostream &out, const JMatrix2D &A) |
| Print ASCII formatted output. More... | |
2 x 2 matrix
Definition at line 32 of file JMath/JMatrix2D.hh.
|
inline |
|
inline |
Contructor.
| __a00 | (0,0) |
| __a01 | (0,1) |
| __a10 | (1,0) |
| __a11 | (1,1) |
Definition at line 58 of file JMath/JMatrix2D.hh.
|
inlinestatic |
Get reference to unique instance of this class object.
Definition at line 70 of file JMath/JMatrix2D.hh.
|
inline |
|
inlinestatic |
Get reference to unique instance of this class object.
Definition at line 97 of file JMath/JMatrix2D.hh.
|
inline |
Set matrix.
| A | matrix |
Definition at line 110 of file JMath/JMatrix2D.hh.
|
inline |
Set matrix to the null matrix.
Definition at line 121 of file JMath/JMatrix2D.hh.
|
inline |
|
inline |
Matrix addition.
| A | matrix |
Definition at line 164 of file JMath/JMatrix2D.hh.
Matrix subtraction.
| A | matrix |
Definition at line 179 of file JMath/JMatrix2D.hh.
|
inline |
Scale matrix.
| factor | factor |
Definition at line 194 of file JMath/JMatrix2D.hh.
|
inline |
Scale matrix.
| factor | factor |
Definition at line 209 of file JMath/JMatrix2D.hh.
Matrix multiplication.
| A | matrix |
| B | matrix |
Definition at line 225 of file JMath/JMatrix2D.hh.
|
inline |
Equality.
| A | matrix |
| eps | numerical precision |
Definition at line 245 of file JMath/JMatrix2D.hh.
|
inline |
Test identity.
| eps | numerical precision |
Definition at line 261 of file JMath/JMatrix2D.hh.
|
inline |
Get determinant of matrix.
Definition at line 272 of file JMath/JMatrix2D.hh.
|
inline |
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 357 of file JMath.hh.
Read matrix from input.
| in | reader |
| matrix | matrix |
Definition at line 301 of file JMath/JMatrix2D.hh.
Write matrix to output.
| out | writer |
| matrix | matrix |
Definition at line 317 of file JMath/JMatrix2D.hh.
|
friend |
Print ASCII formatted output.
| out | output stream |
| A | matrix |
Definition at line 333 of file JMath/JMatrix2D.hh.
| double JMATH::JMatrix2D::a00 |
Definition at line 346 of file JMath/JMatrix2D.hh.
| double JMATH::JMatrix2D::a01 |
Definition at line 346 of file JMath/JMatrix2D.hh.
| double JMATH::JMatrix2D::a10 |
Definition at line 347 of file JMath/JMatrix2D.hh.
| double JMATH::JMatrix2D::a11 |
Definition at line 347 of file JMath/JMatrix2D.hh.
1.8.5