A matrix object is definied by it's rows and columns.
More...
#include <matrices.h>
A matrix object is definied by it's rows and columns.
When a matrix object is created, the array is allocated on the heap (RAM2 for Teensy 4.1) with the C++ 'new' keyword as an array of pointers. See the following resource to learn more: https://www.techiedelight.com/dynamic-memory-allocation-in-c-for-2d-3d-array/ https://dev.to/drakargx/c-contiguous-allocation-of-2-d-arrays-446m
- Parameters
-
rows | Matrix rows. Default = 3 |
cols | Matrix columns. Default = 3 |
◆ Matrix()
Matrix::Matrix |
( |
size_t |
rows = 3 , |
|
|
size_t |
cols = 3 |
|
) |
| |
|
inline |
Define a matrix by rows and columns.
The matrix is allocated on the heap with the C++ 'new' keyword (RAM2 on the Teensy 4.1).
- Parameters
-
rows | Matrix rows. Default = 3 |
cols | Matrix columns. Default = 3 |
◆ ~Matrix()
◆ cols
◆ mat
◆ rows
The documentation for this class was generated from the following file: