Mat.rowSwitch

Switches two rows in this matrix.

struct Mat(T, size_t rowCount, size_t colCount)
ref
Mat!(T, rowCount, colCount)
rowSwitch
(
size_t rowI
,
size_t rowJ
)
if (
isNumeric!T &&
rowCount > 0
&&
colCount > 0
)

Parameters

rowI size_t

A row to swap, starting from 0.

rowJ size_t

A row to swap, starting from 0.

Return Value

Type: Mat!(T, rowCount, colCount)

A reference to this matrix, for method chaining.

Meta