Mat.setData

Sets all elements of this matrix using the given elements.

struct Mat(T, size_t rowCount, size_t colCount)
ref
Mat!(T, rowCount, colCount)
setData
(
T[rowCount * colCount] elements
)
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Parameters

elements T[rowCount * colCount]

The elements to set.

Return Value

Type: Mat!(T, rowCount, colCount)

A reference to this matrix, for method chaining.

Meta