From 151a8895a8ea73f49afb6fad582fa5ffdfb2ffee Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 20 Jan 2009 01:42:05 +0000 Subject: [PATCH] updated git-svn-id: svn://anubis/fart/trunk@13 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- test/tests.cc | 8 ++++++++ util/Matrix.cc | 7 +++++++ util/Matrix.h | 1 + 3 files changed, 16 insertions(+) create mode 100644 test/tests.cc diff --git a/test/tests.cc b/test/tests.cc new file mode 100644 index 0000000..ed070d3 --- /dev/null +++ b/test/tests.cc @@ -0,0 +1,8 @@ + +#include +#include +using namespace std; + +int main() +{ +} diff --git a/util/Matrix.cc b/util/Matrix.cc index 5d53153..a1e7d58 100644 --- a/util/Matrix.cc +++ b/util/Matrix.cc @@ -1,5 +1,8 @@ #include "Matrix.h" +#include /* fabs() */ + +#define FP_EQ(x,y) (fabs((x)-(y)) < 0.00001) Matrix::Matrix() { @@ -193,3 +196,7 @@ Vector operator*(const Matrix & m, const Vector & v) } return res; } + +bool operator==(const Matrix & m1, const Matrix & m2) +{ +} diff --git a/util/Matrix.h b/util/Matrix.h index 7023a70..3c0bf80 100644 --- a/util/Matrix.h +++ b/util/Matrix.h @@ -24,6 +24,7 @@ class Matrix Matrix operator*(const Matrix & m1, const Matrix & m2); Vector operator*(const Matrix & m, const Vector & v); +bool operator==(const Matrix & m1, const Matrix & m2); #endif