Mat.setCol

Sets a specified column to the given vector of elements.

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

Parameters

col size_t

The column number, starting from 0.

vector Vec!(T, rowCount)

The elements to set in the column.

Return Value

Type: Mat!(T, rowCount, colCount)

A reference to this matrix, for method chaining.

Meta