#include #include #include #include #include "blt/std/assert.h" void test_math() { blt::generalized_matrix input{1, -1, -1, 1}; blt::generalized_matrix output{1, 1, 1}; blt::generalized_matrix expected{ blt::vec4{1, -1, -1, 1}, blt::vec4{1, -1, -1, 1}, blt::vec4{1, -1, -1, 1} }; auto w_matrix = input.transpose() * output; BLT_ASSERT(w_matrix == expected && "MATH FAILURE"); } constexpr blt::u32 input_count = 5; constexpr blt::u32 output_count = 4; using input_t = blt::generalized_matrix; using output_t = blt::generalized_matrix; input_t input_1{-1, 1, 1, 1, -1}; output_t output_1{1, 1, -1, 1}; int main() { test_math(); std::cout << output_1 << std::endl; std::cout << input_1.transpose() << std::endl; std::cout << input_1.transpose() * output_1 << std::endl; std::cout << "Hello World!" << std::endl; }