21#ifndef __mia_2d_matrix_hh
22#define __mia_2d_matrix_hh
149 m.
x.y * x.
x + m.
y.y * x.
y);
T2DMatrix< float > C2DFMatrix
a simple 2x2 matrix
T2DVector< T > operator*(const T2DVector< T > &x, const T2DMatrix< T > &m)
T dot(const T2DVector< T > &a, const T2DVector< T > &b)
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define NS_MIA_END
conveniance define to end the mia namespace
T2DMatrix(const T2DMatrix< T > &o)
copy constructor
T2DMatrix(const T2DVector< T2DVector< T > > &o)
construct the matrix from a 2D vector of 2D vectors
T2DMatrix(const T2DVector< T > &x, const T2DVector< T > &y)
static const T2DMatrix _1
static const T2DMatrix _0
T2DMatrix & operator-=(const T2DMatrix< T > &o)
element wise subtract operator
T2DMatrix< T > transposed() const
T2DMatrix & operator=(const T2DMatrix< T > &o)
assignment operator