|
rsLQR
0.1
|
Represents a matrix of double-precision data. More...
#include <matrix.h>
Data Fields | |
| int | rows |
| int | cols |
| double * | data |
Represents a matrix of double-precision data.
Simple wrapper around an arbitrary pointer to the underlying data. The data is assumed to be stored in a contiguous block of memory. The data is interpreted column-wise, such that data[1] is element [1,0] of the matrix.
A Matrix can be initialized a few ways. The easiest is via NewMatrix:
which allocates a new block of memory on the heap. It must be followed by a call to FreeMatrix().
If the data for the matrix is already stored in an array, the default brace initializer can be used:
The following methods are defined for the Matrix type: