updated
git-svn-id: svn://anubis/fart/trunk@13 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
739f1f4fac
commit
151a8895a8
8
test/tests.cc
Normal file
8
test/tests.cc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <cassert>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
}
|
@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user