aboutsummaryrefslogtreecommitdiffstats
path: root/test/matrix_test.cpp
blob: e975794ff0ec1029f2ad4ea1c30abc3be681d0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "Math/matrix.hpp"

#include <iostream>

int main()
{
	yage::Matrix<4, 4> matrix;

	double x=matrix[2][2];
	matrix[2][2]=4;

	std::cout<<"at: "<<x<<", "<<matrix[2][2]<<'\n';

	if(matrix[2][2]==4 && x==0)
		return 0;
	return 1;
}