/
lyapdy
/
skillbox_controllers
Обзор
Документация
Войти
/
lyapdy
/
skillbox_controllers
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Project7/lib/test/test-static_matrix.cpp
33 строки
601 B
danillyapunov
Second commit
09 дек 2025, 18:41
09 дек 2025, 18:41
2c9c8f9
Код
Авторство
О чём код?
#include <iostream> #include <src/matrix.h> int main() { math::Matrix m(3, 3); m(0, 0) = 1.; m(1, 1) = 1.; math::Matrix m1(3, 3); m1(0, 0) = 5.; m1(1, 1) = 5.; std::cout << "Matrix m is"<< std::endl; m.print(); std::cout << "Matrix m1 is"<< std::endl; m1.print(); math::Matrix m2 = m + m1; std::cout << "Matrix m2 is"<< std::endl; m2.print(); math::Matrix m3 = m - m1; std::cout << "Matrix m3 is"<< std::endl; m3.print(); math::Matrix m4 = m * m1; std::cout << "Matrix m4 is"<< std::endl; m4.print(); return 0; }