#include#include "Matrix3.h" int main() { Matrix3 m; std::cout << m << std::endl; return 0; }
1 0 0 0 1 0 0 0 1
#include#include "Matrix3.h" int main() { Matrix3 m1(1, 2, 3, 4, 5, 6, 7, 8, 9); Matrix3 m2(9, 8, 7, 6, 5, 4, 3, 2, 1); Matrix3 result = m1 * m2; std::cout << result << std::endl; return 0; }
30 24 18 84 69 54 138 114 90The package library for the Matrix3 class is not specified in this example, as it is assumed to be defined in a separate header file named "Matrix3.h". However, it is common for Matrix3 classes to be part of larger math or graphics libraries, such as the OpenGL Mathematics (GLM) library or the Eigen library.