#include <Matrix.hpp>
Public Member Functions | |
Matrix (const ivec2 &_size, T *_defaultVal=nullptr) | |
Matrix (int32_t _width=0, int32_t _heigh=0, T *_defaultVal=nullptr) | |
template<class ETK_TYPE_MATRIX_2 > | |
Matrix (const Matrix< ETK_TYPE_MATRIX_2 > &_obj) | |
virtual | ~Matrix ()=default |
const Matrix< T > & | operator= (const Matrix< T > &_obj) |
const Matrix< T > & | operator= (T &_value) |
bool | operator== (const Matrix< T > &_obj) const |
bool | operator!= (const Matrix< T > &_obj) const |
const Matrix< T > & | operator+= (const Matrix< T > &_obj) |
Matrix< T > | operator+ (const Matrix< T > &_obj) |
const Matrix< T > & | operator-= (const Matrix< T > &_obj) |
Matrix< T > | operator- (const Matrix< T > &_obj) |
const Matrix< T > & | operator*= (const Matrix< T > &_obj) |
Matrix< T > | operator* (const Matrix< T > &_obj) |
const T * | operator[] (int32_t _yyy) const |
T * | operator[] (int32_t _yyy) |
const T & | operator[] (const ivec2 &_pos) const |
T & | operator[] (const ivec2 &_pos) |
T & | operator() (size_t _xxx, size_t _yyy) |
Matrix< T > | operator- () const |
Matrix< T > | transpose () const |
Matrix< T > | convolution (Matrix< T > &_obj) const |
Matrix< T > | fix (int32_t _decalage) const |
Matrix< T > | round (int32_t _decalage) const |
Matrix< T > | resize (etk::Vector2D< int32_t > _size) const |
Matrix< T > | select (int32_t _np, int32_t *_p, int32_t _nq, int32_t *_q) const |
void | clearUpperTriangle () |
Detailed Description
template<typename T>
class etk::Matrix< T >
2 dimention matrix template to manage simpliest algo
- Note
- Prototype
Constructor & Destructor Documentation
§ Matrix() [1/3]
|
inline |
Contructor that create a Vector with a specific size and specific raw data.
- Parameters
-
[in] _size Dimention of the matrix [in] _defaultVal Default list of element that might be set in the matrix
§ Matrix() [2/3]
|
inline |
default contructor that create a Vector with a specific size and specific raw data
- Parameters
-
[in] _width Dimention width of the matrix [in] _heigh Dimention heigh of the matrix [in] _defaultVal Default list of element that might be set in the matrix
§ Matrix() [3/3]
|
inline |
Copy contructor with ETK_TYPE_MATRIX_2 type matrix input.
- Parameters
-
[in] _obj Object matrix to copy
§ ~Matrix()
|
virtualdefault |
Virtualisation of destructor.
Member Function Documentation
§ clearUpperTriangle()
|
inline |
Clear the Upper triangle of the current Matrix.
x 0 0 0 0 x x 0 0 0 x x x 0 0 x x x x 0 x x x x x
§ convolution()
|
inline |
Create a convolution on the matrix : set convolution on the lines.
- Parameters
-
[in] _obj The convolution operator
- Returns
- New matrix containing the current matrix concoluate
§ fix()
|
inline |
§ operator!=()
|
inline |
In-Equality compare operator with an other object.
- Parameters
-
[in] _obj Reference on the comparing object
- Returns
- true The Objects are NOT identical
- false The Objects are identical
§ operator()()
|
inline |
Operator() Access at the element at a specific position.
elemntValue = mayMatrix(xxx,yyy);
- Parameters
-
[in] _xxx Colomn position in the matrix [in] _yyy Line position in the matrix
- Returns
- Reference on the element
§ operator*()
|
inline |
Operator* Multiplication an other matrix with this one.
- Parameters
-
[in] _obj Reference on the external object
- Returns
- New matrix containing the value
§ operator*=()
|
inline |
Operator*= Multiplication an other matrix with this one.
- Parameters
-
[in] _obj Reference on the external object
- Returns
- Local reference of the vector multiplicated
§ operator+()
|
inline |
Operator+= Addition an other matrix with this one.
(a b) (e f) (a+e b+f) (c d) + (g h) = (c+g d+h)
- Note
- If the size are different, we create a matrix witth the max size of the 2 others ...
- Parameters
-
[in] _obj Reference on the external object
- Returns
- New matrix containing the value
§ operator+=()
|
inline |
Operator+= Addition an other matrix with this one.
(a b) (e f) (a+e b+f) (c d) + (g h) = (c+g d+h)
- Note
- If the size are different, we create a matrix witth the max size of the 2 others ...
- Parameters
-
[in] _obj Reference on the external object
- Returns
- Local reference of the vector additionned
§ operator-() [1/2]
|
inline |
Operator+= Addition an other matrix with this one.
(a b) (e f) (a-e b-f) (c d) - (g h) = (c-g d-h)
- Note
- If the size are different, we create a matrix witth the max size of the 2 others ...
- Parameters
-
[in] _obj Reference on the external object
- Returns
- New matrix containing the value
§ operator-() [2/2]
|
inline |
Operator- Multiply with -1.
- Returns
- New matrix containing the value
§ operator-=()
|
inline |
Operator+= Addition an other matrix with this one.
(a b) (e f) (a-e b-f) (c d) - (g h) = (c-g d-h)
- Note
- If the size are different, we create a matrix witth the max size of the 2 others ...
- Parameters
-
[in] _obj Reference on the external object
- Returns
- Local reference of the vector additionned
§ operator=() [1/2]
|
inline |
Operator= Asign the current object with an other object.
- Parameters
-
[in] _obj Reference on the external object
- Returns
- Local reference of the vector asigned
§ operator=() [2/2]
|
inline |
Operator= Asign the current object with a unique value.
- Parameters
-
[in] _value Value to set in the matrix data
- Returns
- Local reference of the vector asigned
§ operator==()
|
inline |
Equality compare operator with an other object.
- Parameters
-
[in] _obj Reference on the comparing object
- Returns
- true The Objects are identical
- false The Objects are NOT identical
§ operator[]() [1/4]
|
inline |
Operator[] Access at the first element (const pointer) of a line.
elemntValue = mayMatrix[YYY][xxx];
- Parameters
-
[in] _yyy Line Id requested [0..m_size.y()]
- Returns
- Const pointer on the first line element
§ operator[]() [2/4]
|
inline |
Operator[] Access at the first element (pointer) of a line.
elemntValue = mayMatrix[YYY][xxx];
- Parameters
-
[in] _yyy Line Id requested [0..m_size.y()]
- Returns
- Pointer on the first line element
§ operator[]() [3/4]
|
inline |
Operator[] Access at the element at a specific position.
elemntValue = mayMatrix[ivec2(xxx,yyy)];
- Parameters
-
[in] _pos Position in the matrix
- Returns
- Const Reference on the element
§ operator[]() [4/4]
|
inline |
Operator[] Access at the element at a specific position.
elemntValue = mayMatrix[ivec2(xxx,yyy)];
- Parameters
-
[in] _pos Position in the matrix
- Returns
- Reference on the element
§ resize()
|
inline |
Generate a resised matrix.
- Parameters
-
[in] _size new output size
- Returns
- New matrix resized
§ round()
|
inline |
generate a devide of the curent Matrix with the specify power of 2
- Parameters
-
[in] _decalage The power of 2 of the division
- Returns
- New matrix containing the rounded matrix
§ select()
|
inline |
Select element in the matrix from a list of element Ids.
- Parameters
-
[in] _np Width of the output matrix [in] _p List pointer of x [in] _nq Heigh of the output matrix [in] _q List pointer of y
- Returns
- New matrix resized
§ transpose()
|
inline |
Transpose Matrix.
- Returns
- New matrix containing the value
The documentation for this class was generated from the following file:
- framework/atria-soft/etk/etk/math/Matrix.hpp