cpe::matrix1x4 Class Reference

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
 
  • operator
More...
 
matrix1x4 operator+ (float s) const
 
  • operator
More...
 
matrix1x4 operator- (const matrix1x4 &m2) const
 
  • operator
More...
 
matrix1x4 operator- (float s) const
 
  • operator
More...
 
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...
 
matrix1x4operator+= (const matrix1x4 &m)
 internal + More...
 
matrix1x4operator+= (float s)
 internal + More...
 
matrix1x4operator-= (const matrix1x4 &m)
 internal - More...
 
matrix1x4operator-= (float s)
 internal - More...
 
matrix1x4operator*= (float s)
 internal * More...
 
matrix1x4operator/= (float s)
 internal / More...
 
matrix1x4 operator- () const
 unary negation More...
 
matrix1x4 product_compontentwise (const matrix1x4 &m) const
 does componentwise multiplication More...
 
matrix1x4product_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...
 

Detailed Description

Matrix 1x4.

Constructor & Destructor Documentation

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.

Member Function Documentation

void cpe::matrix1x4::assert_size ( const size_t &  k1,
const size_t &  k2 
) const
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.

+ Here is the call graph for this function:

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.

+ Here is the call graph for this function:

matrix1x4 cpe::matrix1x4::operator* ( float  s) const

multiply by a scalar operator

matrix1x4 cpe::matrix1x4::operator* ( const matrix4  s) const

multiply by a matrix4

References m, matrix1x4(), and cpe::matrix4::pointer().

+ Here is the call graph for this function:

float cpe::matrix1x4::operator* ( const matrix4x1 m2) const

matrix mulitplication

References m, and cpe::matrix4x1::pointer().

+ Here is the call graph for this function:

matrix1x4 & cpe::matrix1x4::operator*= ( float  s)

internal *

References m.

matrix1x4 cpe::matrix1x4::operator+ ( const matrix1x4 m2) const

  • operator

References m, and matrix1x4().

+ Here is the call graph for this function:

matrix1x4 cpe::matrix1x4::operator+ ( float  s) const

  • operator

matrix1x4 & cpe::matrix1x4::operator+= ( const matrix1x4 m)

internal +

References m.

matrix1x4 & cpe::matrix1x4::operator+= ( float  s)

internal +

References m.

matrix1x4 cpe::matrix1x4::operator- ( const matrix1x4 m2) const

  • operator

matrix1x4 cpe::matrix1x4::operator- ( float  s) const

  • operator

References m, and matrix1x4().

+ Here is the call graph for this function:

matrix1x4 cpe::matrix1x4::operator- ( ) const

unary negation

References m, and matrix1x4().

+ Here is the call graph for this function:

matrix1x4 & cpe::matrix1x4::operator-= ( const matrix1x4 m)

internal -

References m.

matrix1x4 & cpe::matrix1x4::operator-= ( float  s)

internal -

References m.

matrix1x4 cpe::matrix1x4::operator/ ( float  s) const

divide by a scalar operator

References m, and matrix1x4().

+ Here is the call graph for this function:

matrix1x4 & cpe::matrix1x4::operator/= ( float  s)

internal /

References m.

const float * cpe::matrix1x4::pointer ( ) const

fast pointer access

Warning
unprotected access

References m.

Referenced by cpe::matrix4x1::operator*(), cpe::operator-(), and cpe::operator<<().

float * cpe::matrix1x4::pointer_unprotected ( )

fast pointer access

Warning
unprotected access

References m.

matrix1x4 cpe::matrix1x4::product_compontentwise ( const matrix1x4 m) const

does componentwise multiplication

References m, and matrix1x4().

+ Here is the call graph for this function:

matrix1x4 & cpe::matrix1x4::product_compontentwise_internal ( const matrix1x4 m)

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.

matrix4x1 cpe::matrix1x4::transposed ( ) const

transpose matrix

References m.

Member Data Documentation


The documentation for this class was generated from the following files: