23#include "utility/math/matrix.hpp"
25namespace utility::math
27 std::ostream &operator<<(std::ostream &stream,
const Matrix2x2F &matrix)
29 stream <<
"Matrix2x2F(";
30 for (std::size_t row = 0; row < 2; ++row) {
32 for (std::size_t col = 0; col < 2; ++col) {
33 stream << matrix[col][row];
47 std::ostream &operator<<(std::ostream &stream,
const Matrix2x2D &matrix)
49 stream <<
"Matrix2x2D(";
50 for (std::size_t row = 0; row < 2; ++row) {
52 for (std::size_t col = 0; col < 2; ++col) {
53 stream << matrix[col][row];
67 std::ostream &operator<<(std::ostream &stream,
const Matrix2x3F &matrix)
69 stream <<
"Matrix2x3F(";
70 for (std::size_t row = 0; row < 2; ++row) {
72 for (std::size_t col = 0; col < 3; ++col) {
73 stream << matrix[col][row];
87 std::ostream &operator<<(std::ostream &stream,
const Matrix2x3D &matrix)
89 stream <<
"Matrix2x3D(";
90 for (std::size_t row = 0; row < 2; ++row) {
92 for (std::size_t col = 0; col < 3; ++col) {
93 stream << matrix[col][row];
107 std::ostream &operator<<(std::ostream &stream,
const Matrix3x2F &matrix)
109 stream <<
"Matrix3x2F(";
110 for (std::size_t row = 0; row < 3; ++row) {
112 for (std::size_t col = 0; col < 2; ++col) {
113 stream << matrix[col][row];
127 std::ostream &operator<<(std::ostream &stream,
const Matrix3x2D &matrix)
129 stream <<
"Matrix3x2D(";
130 for (std::size_t row = 0; row < 3; ++row) {
132 for (std::size_t col = 0; col < 2; ++col) {
133 stream << matrix[col][row];
147 std::ostream &operator<<(std::ostream &stream,
const Matrix3x3F &matrix)
149 stream <<
"Matrix3x3F(";
150 for (std::size_t row = 0; row < 3; ++row) {
152 for (std::size_t col = 0; col < 3; ++col) {
153 stream << matrix[col][row];
167 std::ostream &operator<<(std::ostream &stream,
const Matrix3x3D &matrix)
169 stream <<
"Matrix3x3D(";
170 for (std::size_t row = 0; row < 3; ++row) {
172 for (std::size_t col = 0; col < 3; ++col) {
173 stream << matrix[col][row];
187 std::ostream &operator<<(std::ostream &stream,
const Matrix3x4F &matrix)
189 stream <<
"Matrix3x4F(";
190 for (std::size_t row = 0; row < 3; ++row) {
192 for (std::size_t col = 0; col < 4; ++col) {
193 stream << matrix[col][row];
207 std::ostream &operator<<(std::ostream &stream,
const Matrix3x4D &matrix)
209 stream <<
"Matrix3x4D(";
210 for (std::size_t row = 0; row < 3; ++row) {
212 for (std::size_t col = 0; col < 4; ++col) {
213 stream << matrix[col][row];
227 std::ostream &operator<<(std::ostream &stream,
const Matrix4x2F &matrix)
229 stream <<
"Matrix4x2F(";
230 for (std::size_t row = 0; row < 4; ++row) {
232 for (std::size_t col = 0; col < 2; ++col) {
233 stream << matrix[col][row];
247 std::ostream &operator<<(std::ostream &stream,
const Matrix4x2D &matrix)
249 stream <<
"Matrix4x2D(";
250 for (std::size_t row = 0; row < 4; ++row) {
252 for (std::size_t col = 0; col < 2; ++col) {
253 stream << matrix[col][row];
267 std::ostream &operator<<(std::ostream &stream,
const Matrix4x3F &matrix)
269 stream <<
"Matrix4x3F(";
270 for (std::size_t row = 0; row < 4; ++row) {
272 for (std::size_t col = 0; col < 3; ++col) {
273 stream << matrix[col][row];
287 std::ostream &operator<<(std::ostream &stream,
const Matrix4x3D &matrix)
289 stream <<
"Matrix4x3D(";
290 for (std::size_t row = 0; row < 4; ++row) {
292 for (std::size_t col = 0; col < 3; ++col) {
293 stream << matrix[col][row];
307 std::ostream &operator<<(std::ostream &stream,
const Matrix4x4F &matrix)
309 stream <<
"Matrix4x4F(";
310 for (std::size_t row = 0; row < 4; ++row) {
312 for (std::size_t col = 0; col < 4; ++col) {
313 stream << matrix[col][row];
327 std::ostream &operator<<(std::ostream &stream,
const Matrix4x4D &matrix)
329 stream <<
"Matrix4x4D(";
330 for (std::size_t row = 0; row < 4; ++row) {
332 for (std::size_t col = 0; col < 4; ++col) {
333 stream << matrix[col][row];