Matrix 3x3. More...
Public Member Functions | |
| matrix3 () | |
| empty constructor (identity) | |
| matrix3 (const double &x00, const double &x01, const double &x02, const double &x10, const double &x11, const double &x12, const double &x20, const double &x21, const double &x22) | |
| direct constructor with every value | |
| const double & | operator() (const size_t &k1, const size_t &k2) const |
| Access to the k_th entry (k in [0,2]) | |
| double & | operator() (const size_t &k1, const size_t &k2) |
| Access to the k_th entry (k in [0,2]) | |
| const double * | pointer () const |
| fast pointer access | |
| double * | pointer_unprotected () |
| fast pointer access | |
| matrix3 | operator+ (const matrix3 &m2) const |
| |
| matrix3 | operator+ (const double &s) const |
| |
| matrix3 | operator- (const matrix3 &m2) const |
| |
| matrix3 | operator- (const double &s) const |
| |
| matrix3 | operator* (const double &s) const |
| multiply by a scalar operator | |
| v3 | operator* (const v3 &v) const |
| multiply matrix with a v3 | |
| matrix3 | operator* (const matrix3 &m2) const |
| matrix mulitplication | |
| matrix3 | operator/ (const double &s) const |
| divide by a scalar operator | |
| matrix3 & | operator+= (const matrix3 &m) |
| internal + | |
| matrix3 & | operator+= (const double &s) |
| internal + | |
| matrix3 & | operator-= (const matrix3 &m) |
| internal - | |
| matrix3 & | operator-= (const double &s) |
| internal - | |
| matrix3 & | operator*= (const double &s) |
| internal * | |
| matrix3 & | operator/= (const double &s) |
| internal / | |
| matrix3 | operator- () const |
| unary negation | |
| matrix3 | product_compontentwise (const matrix3 &m) const |
| does componentwise multiplication | |
| matrix3 & | product_compontentwise_internal (const matrix3 &m) |
| does componentwise multiplication | |
| matrix3 | transposed () const |
| transpose matrix | |
| std::vector< double > | to_vector () const |
| convert 3x3 matrix into a vector of double of size 9 | |
Static Public Member Functions | |
| static matrix3 | identity () |
| build identity matrix | |
| static matrix3 | zeros () |
| build zero matrix | |
| static matrix3 | rotation (const v3 &axis, const double &angle) |
| build rotation matrix | |
| static matrix3 | scale (const double &s) |
| build scaling matrix | |
| static matrix3 | scale (const double &s_x, const double &s_y, const double &s_z) |
| build scaling matrix | |
Private Member Functions | |
| void | assert_size (const size_t &k1, const size_t &k2) const |
| assert that a size_t belongs to [[0,2]] | |
Private Attributes | |
| double | m [9] |
| internal storage of the matrix | |
Matrix 3x3.
| cpe::matrix3::matrix3 | ( | ) |
empty constructor (identity)
References m.
Referenced by identity(), operator-(), operator/(), product_compontentwise(), rotation(), scale(), transposed(), and zeros().
Here is the caller graph for this function:| cpe::matrix3::matrix3 | ( | const double & | x00, |
| const double & | x01, | ||
| const double & | x02, | ||
| const double & | x10, | ||
| const double & | x11, | ||
| const double & | x12, | ||
| const double & | x20, | ||
| const double & | x21, | ||
| const double & | x22 | ||
| ) |
direct constructor with every value
References m.
|
private |
assert that a size_t belongs to [[0,2]]
Referenced by operator()().
Here is the caller graph for this function:
|
static |
| const double & cpe::matrix3::operator() | ( | const size_t & | k1, |
| const size_t & | k2 | ||
| ) | const |
Access to the k_th entry (k in [0,2])
References assert_size(), and m.
Here is the call graph for this function:| double & cpe::matrix3::operator() | ( | const size_t & | k1, |
| const size_t & | k2 | ||
| ) |
Access to the k_th entry (k in [0,2])
References assert_size(), and m.
Here is the call graph for this function:| matrix3 cpe::matrix3::operator* | ( | const double & | s | ) | const |
multiply by a scalar operator
multiply matrix with a v3
References m, cpe::v3::x(), cpe::v3::y(), and cpe::v3::z().
Here is the call graph for this function:matrix mulitplication
References m, pointer_unprotected(), and zeros().
Here is the call graph for this function:| matrix3 cpe::matrix3::operator+ | ( | const double & | s | ) | const |
| matrix3 cpe::matrix3::operator- | ( | const double & | s | ) | const |
| matrix3 cpe::matrix3::operator- | ( | ) | const |
| matrix3 cpe::matrix3::operator/ | ( | const double & | s | ) | const |
| const double * cpe::matrix3::pointer | ( | ) | const |
fast pointer access
References m.
Referenced by operator-(), cpe::operator-(), and cpe::operator<<().
Here is the caller graph for this function:| double * cpe::matrix3::pointer_unprotected | ( | ) |
fast pointer access
References m.
Referenced by operator*().
Here is the caller graph for this function:does componentwise multiplication
References m.
build rotation matrix
References matrix3(), and cpe::v3::normalized().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
| std::vector< double > cpe::matrix3::to_vector | ( | ) | const |
convert 3x3 matrix into a vector of double of size 9
References m.
| matrix3 cpe::matrix3::transposed | ( | ) | const |
|
static |
build zero matrix
References matrix3().
Referenced by operator*().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
internal storage of the matrix
Referenced by matrix3(), operator()(), operator*(), operator*=(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), pointer(), pointer_unprotected(), product_compontentwise(), product_compontentwise_internal(), to_vector(), and transposed().