Matrix.scale

In-place matrix scaling.

struct Matrix(T, ubyte R, ubyte C = R, MatrixOrder O = CurrentMatrixOrder)
pure nothrow @safe @nogc
static if(O == MatrixOrder.RowMajor)
static if(isSquare && R > 2)
void
scale
(
Vector!(T, R - 1) v
)
if (
R >= 2 &&
R <= 4
&&
C >= 2
&&
C <= 4
)

Examples

Meta