git-svn-id: svn://anubis/fart/trunk@13 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-01-20 01:42:05 +00:00
parent 739f1f4fac
commit 151a8895a8
3 changed files with 16 additions and 0 deletions

8
test/tests.cc Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
#include <cassert>
using namespace std;
int main()
{
}

View File

@ -1,5 +1,8 @@
#include "Matrix.h" #include "Matrix.h"
#include <math.h> /* fabs() */
#define FP_EQ(x,y) (fabs((x)-(y)) < 0.00001)
Matrix::Matrix() Matrix::Matrix()
{ {
@ -193,3 +196,7 @@ Vector operator*(const Matrix & m, const Vector & v)
} }
return res; return res;
} }
bool operator==(const Matrix & m1, const Matrix & m2)
{
}

View File

@ -24,6 +24,7 @@ class Matrix
Matrix operator*(const Matrix & m1, const Matrix & m2); Matrix operator*(const Matrix & m1, const Matrix & m2);
Vector operator*(const Matrix & m, const Vector & v); Vector operator*(const Matrix & m, const Vector & v);
bool operator==(const Matrix & m1, const Matrix & m2);
#endif #endif