Mat.opIndex

Gets the value at a specified location in the matrix. For example, with a Mat!(float, 2, 2) m, we can say float v = m[0, 1];

struct Mat(T, size_t rowCount, size_t colCount)
const
T
opIndex
(
size_t i
,
size_t j
)
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Parameters

i size_t

The row number, starting from 0.

j size_t

The column number, starting from 0.

Return Value

Type: T

The value at the specified location.

Meta