|
Flat
Allows addressing a matrix element through one index instead of two.
bool matrix::Flat(
|
Parameters
index
[in] Flat index
value
[in] Value to set by given index.
Return Value
Value by given index.
Note
For the matrix mat(3,3), access can be written as follows:
Example
matrix matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|