Matrix.fromRows

Construct a matrix from rows.

struct Matrix(T, ubyte R, ubyte C = R)
static
fromRows
if (
R >= 2 &&
R <= 4
&&
C >= 2
&&
C <= 4
)

Examples

auto row = Vector!(double, 2)(2.0, 4.5);
const matrix = Matrix!(double, 2).fromRows([row, row]);
assert(matrix.v == [2.0, 4.5, /**/ 2.0, 4.5]);

Meta