|
The blo Library
|
Small matrix. More...
#include <SmallMatrix.h>
Public Member Functions | |
| SmallMatrix ()=default | |
| Default constructor. | |
| SmallMatrix (const T &val) | |
| Constructs matrix of specified value. | |
| SmallMatrix (const std::initializer_list< const std::initializer_list< T > > &lists) | |
| Constructs matrix that is a copy of specified initializer lists. | |
| SmallMatrix (const T *pSrc, int srcStride1, int srcStride2) | |
| Constructs matrix that is a copy of specified matrix. | |
| SmallMatrix (const SmallMatrixTranspose< T, N, M > &transpose) | |
| Constructs matrix that is a copy of specified matrix transpose. | |
| SmallMatrix (const SmallMatrix< T, M, N > &rhs)=default | |
| Copy constructor. | |
| virtual | ~SmallMatrix ()=default |
| Destructor. | |
| SmallMatrix< T, M, N > & | operator= (const SmallMatrix< T, M, N > &rhs)=default |
| Assignment operator. | |
| SmallMatrix< T, M, N > & | operator= (const SmallMatrixTranspose< T, N, M > &transpose) |
| Assignment operator. | |
| SmallMatrix< T, M, N > & | operator+= (const T &scalar) |
| SmallMatrix< T, M, N > & | operator+= (const SmallMatrix< T, M, N > &rhs) |
| SmallMatrix< T, M, N > & | operator+= (const SmallMatrixTranspose< T, N, M > &transpose) |
| SmallMatrix< T, M, N > & | operator-= (const T &scalar) |
| SmallMatrix< T, M, N > & | operator-= (const SmallMatrix< T, M, N > &rhs) |
| SmallMatrix< T, M, N > & | operator-= (const SmallMatrixTranspose< T, N, M > &transpose) |
| SmallMatrix< T, M, N > & | operator*= (const T &scalar) |
| SmallMatrix< T, M, N > & | operator/= (const T &scalar) |
| SmallMatrix< T, M, N > & | operator*= (const SmallMatrix< T, N, N > &rhs) |
| SmallMatrix< T, M, N > & | operator*= (const SmallMatrixTranspose< T, N, N > &transpose) |
Public Member Functions inherited from blo::Array2DFixed< T, M, N > | |
| Array2DFixed ()=default | |
| Default constructor. | |
| Array2DFixed (const T &val) | |
| Constructs array of specified value. | |
| Array2DFixed (const std::initializer_list< const std::initializer_list< T > > &lists) | |
| Constructs array that is a copy of specified initializer lists. | |
| Array2DFixed (const Array2DFixed< T, M, N > &rhs)=default | |
| Copy constructor. | |
| virtual | ~Array2DFixed ()=default |
| Destructor. | |
| Array2DFixed< T, M, N > & | operator= (const Array2DFixed< T, M, N > &rhs)=default |
| Copy assignment operator. | |
| T * | operator[] (int i) |
| Index array row. | |
| const T * | operator[] (int i) const |
| Index array row. | |
| T * | ptrData () |
| Retrieves the pointer to the beginning of the array. | |
| const T * | ptrData () const |
| Retrieves the pointer to the beginning of the array. | |
| void | set (const T &val) |
| Sets array elements to a value. | |
Additional Inherited Members | |
Static Public Member Functions inherited from blo::Array2DFixed< T, M, N > | |
| static int | rows () |
| Number of rows in the array. | |
| static int | height () |
| Height of the array. | |
| static int | columns () |
| Number of columns in the array. | |
| static int | width () |
| Width of the array. | |
| static int | stride1 () |
| Stride in bytes between the rows in the array. | |
| static int | step () |
| Step in bytes between the rows in the array. | |
| static int | ld () |
| Leading dimension between the rows in the array. | |
| static int | stride2 () |
| Stride in bytes between the elements in the array. | |
Small matrix.
| T | Data type. |
| M | Number of rows. |
| N | Number of columns. |
|
default |
Default constructor.
|
explicit |
Constructs matrix of specified value.
| val | Constant value to assign to each element in the matrix. |
| blo::SmallMatrix< T, M, N >::SmallMatrix | ( | const std::initializer_list< const std::initializer_list< T > > & | lists | ) |
Constructs matrix that is a copy of specified initializer lists.
| lists | Initializer lists. |
| blo::SmallMatrix< T, M, N >::SmallMatrix | ( | const T * | pSrc, |
| int | srcStride1, | ||
| int | srcStride2 | ||
| ) |
Constructs matrix that is a copy of specified matrix.
| pSrc | Pointer to the source matrix. |
| srcStride1 | Stride in bytes between the rows in the source matrix. |
| srcStride2 | Stride in bytes between the elements in the source matrix. |
|
explicit |
Constructs matrix that is a copy of specified matrix transpose.
| transpose | The source matrix transpose. |
|
default |
Copy constructor.
|
virtualdefault |
Destructor.
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator*= | ( | const SmallMatrix< T, N, N > & | rhs | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator*= | ( | const SmallMatrixTranspose< T, N, N > & | transpose | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator*= | ( | const T & | scalar | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator+= | ( | const SmallMatrix< T, M, N > & | rhs | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator+= | ( | const SmallMatrixTranspose< T, N, M > & | transpose | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator+= | ( | const T & | scalar | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator-= | ( | const SmallMatrix< T, M, N > & | rhs | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator-= | ( | const SmallMatrixTranspose< T, N, M > & | transpose | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator-= | ( | const T & | scalar | ) |
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator/= | ( | const T & | scalar | ) |
|
default |
Assignment operator.
| SmallMatrix< T, M, N > & blo::SmallMatrix< T, M, N >::operator= | ( | const SmallMatrixTranspose< T, N, M > & | transpose | ) |
Assignment operator.
| transpose | The source matrix transpose. |