matrixToStr

Formatted matrix printer

string
matrixToStr
(
T
size_t N
)
(
Matrix!(T, N) m
)

Examples

import std.string;
Matrix2f m1 = matrixf(
    1, 0,
    0, 1
);
string s = m1.toString;
assert(s.startsWith(" 1.0000    0.0000 \n 0.0000    1.0000"));

Meta