27 #include "../libcommon/exception_cpe.hpp"
50 matrix4x1(
float x00,
float x01,
float x02,
float x03);
61 float operator()(
const size_t& k1,
const size_t& k2)
const;
63 float&
operator()(
const size_t& k1,
const size_t& k2);
157 void assert_size(
const size_t& k1,
const size_t& k2)
const;
std::vector< float > to_vector() const
convert 1x4 matrix into a vector of float of size 4
Definition: matrix4x1.cpp:209
const float * pointer() const
fast pointer access
Definition: matrix4x1.cpp:201
float m[4]
internal storage of the matrix
Definition: matrix4x1.hpp:147
matrix4x1 & operator/=(float s)
internal /
Definition: matrix4x1.cpp:159
matrix4x1()
empty constructor (identity)
Definition: matrix4x1.cpp:35
matrix4x1 transposed() const
transpose matrix
Definition: matrix4x1.cpp:217
Matrix 1x4.
Definition: matrix1x4.hpp:36
float operator()(const size_t &k1, const size_t &k2) const
Access to the k_th entry (k in [0,1])
Definition: matrix4x1.cpp:45
matrix4x1 operator+(const matrix4x1 &m2) const
operator
Definition: matrix4x1.cpp:56
matrix1x4 operator-(float s, const matrix1x4 &m)
operator
Definition: matrix1x4.cpp:82
Matrix 1x4.
Definition: matrix4x1.hpp:36
matrix1x4 operator+(float s, const matrix1x4 &m)
operator
Definition: matrix1x4.cpp:61
matrix4x1 product_compontentwise(const matrix4x1 &m) const
does componentwise multiplication
Definition: matrix4x1.cpp:170
float * pointer_unprotected()
fast pointer access
Definition: matrix4x1.cpp:205
void assert_size(const size_t &k1, const size_t &k2) const
assert that a size_t belongs to 0x[[0,3]]
Definition: matrix4x1.cpp:191
Matrix 4x4.
Definition: matrix4.hpp:37
matrix1x4 operator*(float s, const matrix1x4 &m)
multiply by a scalar operator
Definition: matrix1x4.cpp:93
std::ostream & operator<<(std::ostream &stream, const matrix1x4 &_m)
output the vector in ostream
Definition: matrix1x4.cpp:182
matrix4x1 operator/(float s) const
divide by a scalar operator
Definition: matrix4x1.cpp:117
matrix4x1 & operator-=(const matrix4x1 &m)
internal -
Definition: matrix4x1.cpp:137
matrix4x1 & product_compontentwise_internal(const matrix4x1 &m)
does componentwise multiplication
Definition: matrix4x1.cpp:176
matrix4x1 & operator+=(const matrix4x1 &m)
internal +
Definition: matrix4x1.cpp:122
matrix4x1 & operator*=(float s)
internal *
Definition: matrix4x1.cpp:152
matrix4x1 operator*(float s) const
multiply by a scalar operator
Definition: matrix4x1.cpp:102
matrix4x1 operator-() const
unary negation
Definition: matrix4x1.cpp:166