Mat.setRow

Sets a specified row to the given vector of elements.

struct Mat(T, size_t rowCount, size_t colCount)
ref
Mat!(T, rowCount, colCount)
setRow
(
size_t row
,
Vec!(T, colCount) vector
)
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Parameters

row size_t

The row number, starting from 0.

vector Vec!(T, colCount)

The elements to set in the row.

Return Value

Type: Mat!(T, rowCount, colCount)

A reference to this matrix, for method chaining.

Meta