You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
484 B

#include <assert.h>
#include "matrix.hpp"
using namespace matrix;
template class Matrix<float, 3, 3>;
int main()
{
Matrix3f A;
A.setIdentity();
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (i == j) {
assert( fabs(A(i, j) - 1) < 1e-7);
} else {
assert( fabs(A(i, j) - 0) < 1e-7);
}
}
}
return 0;
}
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */