Matrix.hpp File Reference
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
#include <vector>

Go to the source code of this file.

Classes

class  etk::Matrix< T >
 

Namespaces

 etk
 

Typedefs

using dmat = etk::Matrix< double >
 
using mat = etk::Matrix< float >
 
using imat = etk::Matrix< int32_t >
 
using uimat = etk::Matrix< uint32_t >
 

Functions

void etk::clearLowerTriangle ()
 
void makeRandom (float _range)
 
maxDifference (const Matrix< T > &_input) const
 
void clear ()
 
void identity ()
 
void eye ()
 
const uivec2size () const
 

Detailed Description

Author
Edouard DUPIN
Note
License: APACHE v2.0 (see license file)

Typedef Documentation

§ dmat

using dmat = etk::Matrix<double>

Helper to simplify using of matrix.

§ imat

using imat = etk::Matrix<int32_t>

Helper to simplify using of matrix.

§ mat

using mat = etk::Matrix<float>

Helper to simplify using of matrix.

§ uimat

using uimat = etk::Matrix<uint32_t>

Helper to simplify using of matrix.

Function Documentation

§ clear()

void clear ( )

Clear all the matrix.

  0 0 0 0 0
  0 0 0 0 0
  0 0 0 0 0
  0 0 0 0 0
  0 0 0 0 0

§ eye()

void eye ( )

Clear and set the diagonal at 1.

§ identity()

void identity ( )

Set the matrix identity.

  1 0 0 0 0
  0 1 0 0 0
  0 0 1 0 0
  0 0 0 1 0

§ makeRandom()

void makeRandom ( float  _range)

Generate a compleate random Matrix.

Parameters
[in]_rangeThe min/max value of the random Generation [-range..range].

§ maxDifference()

T maxDifference ( const Matrix< T > &  _input) const

Return the maximum of the diff for this Matrix.

Parameters
[in]_inputThe compared Matix.
Returns
The absolute max value.

§ size()

const uivec2& size ( ) const

Get the size of the current Matrix.

Returns
Dimention of the matrix