Matrix 1x4. More...
Public Member Functions | |
matrix1x4 () | |
empty constructor (identity) More... | |
matrix1x4 (float x00, float x01, float x02, float x03) | |
direct constructor with every value More... | |
float | operator() (const size_t &k1, const size_t &k2) const |
Access to the k_th entry (k in [0,1]) More... | |
float & | operator() (const size_t &k1, const size_t &k2) |
Access to the k_th entry (k in [0,1]) More... | |
const float * | pointer () const |
fast pointer access More... | |
float * | pointer_unprotected () |
fast pointer access More... | |
matrix1x4 | operator+ (const matrix1x4 &m2) const |
| |
matrix1x4 | operator+ (float s) const |
| |
matrix1x4 | operator- (const matrix1x4 &m2) const |
| |
matrix1x4 | operator- (float s) const |
| |
matrix1x4 | operator* (float s) const |
multiply by a scalar operator More... | |
matrix1x4 | operator* (const matrix4 s) const |
multiply by a matrix4 More... | |
float | operator* (const matrix4x1 &m2) const |
matrix mulitplication More... | |
matrix1x4 | operator/ (float s) const |
divide by a scalar operator More... | |
matrix1x4 & | operator+= (const matrix1x4 &m) |
internal + More... | |
matrix1x4 & | operator+= (float s) |
internal + More... | |
matrix1x4 & | operator-= (const matrix1x4 &m) |
internal - More... | |
matrix1x4 & | operator-= (float s) |
internal - More... | |
matrix1x4 & | operator*= (float s) |
internal * More... | |
matrix1x4 & | operator/= (float s) |
internal / More... | |
matrix1x4 | operator- () const |
unary negation More... | |
matrix1x4 | product_compontentwise (const matrix1x4 &m) const |
does componentwise multiplication More... | |
matrix1x4 & | product_compontentwise_internal (const matrix1x4 &m) |
does componentwise multiplication More... | |
matrix4x1 | transposed () const |
transpose matrix More... | |
std::vector< float > | to_vector () const |
convert 1x4 matrix into a vector of float of size 4 More... | |
Private Member Functions | |
void | assert_size (const size_t &k1, const size_t &k2) const |
assert that a size_t belongs to 0x[[0,3]] More... | |
Private Attributes | |
float | m [4] |
internal storage of the matrix More... | |
Matrix 1x4.
cpe::matrix1x4::matrix1x4 | ( | ) |
empty constructor (identity)
References m.
Referenced by operator*(), operator+(), operator-(), operator/(), and product_compontentwise().
cpe::matrix1x4::matrix1x4 | ( | float | x00, |
float | x01, | ||
float | x02, | ||
float | x03 | ||
) |
direct constructor with every value
References m.
|
private |
assert that a size_t belongs to 0x[[0,3]]
References MACRO_EXCEPTION_PARAMETER.
Referenced by operator()().
float cpe::matrix1x4::operator() | ( | const size_t & | k1, |
const size_t & | k2 | ||
) | const |
Access to the k_th entry (k in [0,1])
References assert_size(), and m.
float & cpe::matrix1x4::operator() | ( | const size_t & | k1, |
const size_t & | k2 | ||
) |
Access to the k_th entry (k in [0,1])
References assert_size(), and m.
matrix1x4 cpe::matrix1x4::operator* | ( | float | s | ) | const |
multiply by a scalar operator
multiply by a matrix4
References m, matrix1x4(), and cpe::matrix4::pointer().
float cpe::matrix1x4::operator* | ( | const matrix4x1 & | m2 | ) | const |
matrix mulitplication
References m, and cpe::matrix4x1::pointer().
matrix1x4 cpe::matrix1x4::operator+ | ( | float | s | ) | const |
matrix1x4 cpe::matrix1x4::operator- | ( | float | s | ) | const |
matrix1x4 cpe::matrix1x4::operator- | ( | ) | const |
matrix1x4 cpe::matrix1x4::operator/ | ( | float | s | ) | const |
divide by a scalar operator
References m, and matrix1x4().
const float * cpe::matrix1x4::pointer | ( | ) | const |
fast pointer access
References m.
Referenced by cpe::matrix4x1::operator*(), cpe::operator-(), and cpe::operator<<().
float * cpe::matrix1x4::pointer_unprotected | ( | ) |
does componentwise multiplication
References m, and matrix1x4().
does componentwise multiplication
References m.
std::vector< float > cpe::matrix1x4::to_vector | ( | ) | const |
convert 1x4 matrix into a vector of float of size 4
References m.
|
private |
internal storage of the matrix
Referenced by matrix1x4(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), pointer(), pointer_unprotected(), product_compontentwise(), product_compontentwise_internal(), to_vector(), and transposed().