Data Structures | Typedefs | Functions
3d/matrix.hh File Reference
#include <mia/3d/vector.hh>
#include <mia/core/msgstream.hh>

Go to the source code of this file.

Data Structures

struct  solve_lines_t
 
struct  T3DMatrix< T >
 a simple 3x3 matrix More...
 

Typedefs

typedef T3DMatrix< float > C3DFMatrix
 a simple 3x3 matrix More...
 

Functions

double cubrt (double a)
 
template<typename T >
T3DVector< T > operator* (const T3DVector< T > &x, const T3DMatrix< T > &m)
 
template<typename T >
T3DVector< T > operator* (const T3DMatrix< T > &m, const T3DVector< T > &x)
 
template<typename T >
T3DMatrix< T > operator* (const T3DMatrix< T > &m, const T3DMatrix< T > &x)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const T3DMatrix< T > &m)
 
template<class T >
bool solve_2x2 (T a11, T a12, T b1, T a21, T a22, T b2, T *x1, T *x2)
 

Typedef Documentation

typedef T3DMatrix<float> C3DFMatrix

a simple 3x3 matrix

Definition at line 148 of file 3d/matrix.hh.

Function Documentation

double cubrt ( double  a)
inline

Definition at line 269 of file 3d/matrix.hh.

Referenced by T3DMatrix< T >::get_eigenvalues().

template<typename T >
T3DVector<T> operator* ( const T3DVector< T > &  x,
const T3DMatrix< T > &  m 
)
template<typename T >
T3DVector<T> operator* ( const T3DMatrix< T > &  m,
const T3DVector< T > &  x 
)
template<typename T >
T3DMatrix<T> operator* ( const T3DMatrix< T > &  m,
const T3DMatrix< T > &  x 
)
template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const T3DMatrix< T > &  m 
)

Definition at line 201 of file 3d/matrix.hh.

template<class T >
bool solve_2x2 ( a11,
a12,
b1,
a21,
a22,
b2,
T *  x1,
T *  x2 
)

solve a 2x2 system of equations a11 * x1 + a12 * x2 = b1 a21 * x1 + a22 * x2 = b2

Parameters
a11
a12
b1
a21
a22
b2
x1
x2
Returns
true if system was solved, false otherwise

Definition at line 360 of file 3d/matrix.hh.

Referenced by T3DMatrix< T >::get_eigenvector().