#include <SymMatrix3D.hpp>
Public Types |
enum | Term {
T00 = 0,
T01 = 1,
T02 = 2,
T10 = T01,
T11 = 3,
T12 = 4,
T20 = T02,
T21 = T12,
T22 = 5
} |
Public Member Functions |
| SymMatrix3D () |
| SymMatrix3D (double diagonal_value) |
| SymMatrix3D (double t00, double t01, double t02, double t11, double t12, double t22) |
| SymMatrix3D (const Vector3D &u) |
| Outer product.
|
double & | operator[] (unsigned t) |
double | operator[] (unsigned t) const |
double & | operator() (unsigned short r, unsigned short c) |
double | operator() (unsigned short r, unsigned short c) const |
SymMatrix3D & | operator+= (const SymMatrix3D &other) |
SymMatrix3D & | operator-= (const SymMatrix3D &other) |
SymMatrix3D & | operator*= (double scalar) |
SymMatrix3D & | operator/= (double scalar) |
Static Public Member Functions |
static Term | term (unsigned r, unsigned c) |
Private Attributes |
double | d_ [6] |
Detailed Description
Definition at line 41 of file SymMatrix3D.hpp.
Member Enumeration Documentation
- Enumerator:
T00 |
|
T01 |
|
T02 |
|
T10 |
|
T11 |
|
T12 |
|
T20 |
|
T21 |
|
T22 |
|
Definition at line 47 of file SymMatrix3D.hpp.
Constructor & Destructor Documentation
Member Function Documentation
double& MBMesquite::SymMatrix3D::operator() |
( |
unsigned short |
r, |
|
|
unsigned short |
c |
|
) |
| [inline] |
double MBMesquite::SymMatrix3D::operator() |
( |
unsigned short |
r, |
|
|
unsigned short |
c |
|
) |
| const [inline] |
SymMatrix3D & MBMesquite::SymMatrix3D::operator*= |
( |
double |
scalar | ) |
[inline] |
Definition at line 124 of file SymMatrix3D.hpp.
References d_.
{
d_[0] += other.d_[0];
d_[1] += other.d_[1];
d_[2] += other.d_[2];
d_[3] += other.d_[3];
d_[4] += other.d_[4];
d_[5] += other.d_[5];
return *this;
}
Definition at line 135 of file SymMatrix3D.hpp.
References d_.
{
d_[0] -= other.d_[0];
d_[1] -= other.d_[1];
d_[2] -= other.d_[2];
d_[3] -= other.d_[3];
d_[4] -= other.d_[4];
d_[5] -= other.d_[5];
return *this;
}
SymMatrix3D & MBMesquite::SymMatrix3D::operator/= |
( |
double |
scalar | ) |
[inline] |
double& MBMesquite::SymMatrix3D::operator[] |
( |
unsigned |
t | ) |
[inline] |
double MBMesquite::SymMatrix3D::operator[] |
( |
unsigned |
t | ) |
const [inline] |
Definition at line 60 of file SymMatrix3D.hpp.
{
return (Term)( r <= c ? 3 * r - r * ( r + 1 ) / 2 + c : 3 * c - c * ( c + 1 ) / 2 + r );
}
Member Data Documentation
List of all members.
The documentation for this class was generated from the following file: