updated Makefile, tests.cc, util/Matrix
git-svn-id: svn://anubis/fart/trunk@16 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
746b17227c
commit
2adb782b24
4 files changed
+46
-1
No files matched your search
@@ -1,8 +1,29 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include "util/Matrix.h"
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
Matrix m;
|
||||
int v = 1;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
m[i][j] = v++;
|
||||
}
|
||||
}
|
||||
|
||||
cout << "m:" << endl << m;
|
||||
|
||||
Matrix i = m.getInverse();
|
||||
|
||||
cout << "i:" << endl << i;
|
||||
|
||||
Matrix mult = m * i;
|
||||
cout << "mult:" << endl << mult;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user