test_math_detCommandTest.h 811 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef TEST_MATH_DETCOMMANDTEST
#define TEST_MATH_DETCOMMANDTEST
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "octave/oct.h"
#include "Helper.h"
#include "octave/builtin-defun-decls.h"
class test_math_detCommandTest{
public:
Matrix CONSTANTCONSTANTVECTOR0;
void init()
{
Sascha Niklas Schneiders's avatar
Sascha Niklas Schneiders committed
14
CONSTANTCONSTANTVECTOR0 = Matrix(3,3);
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CONSTANTCONSTANTVECTOR0(0,0) = 1;
CONSTANTCONSTANTVECTOR0(0,1) = 0;
CONSTANTCONSTANTVECTOR0(0,2) = 0;
CONSTANTCONSTANTVECTOR0(1,0) = 0;
CONSTANTCONSTANTVECTOR0(1,1) = 1;
CONSTANTCONSTANTVECTOR0(1,2) = 0;
CONSTANTCONSTANTVECTOR0(2,0) = 0;
CONSTANTCONSTANTVECTOR0(2,1) = 0;
CONSTANTCONSTANTVECTOR0(2,2) = 1;
}
void execute()
{
Matrix mat = CONSTANTCONSTANTVECTOR0;
double a = (Helper::getDoubleFromOctaveListFirstResult(Fdet(Helper::convertToOctaveValueList(mat),1)));
}

};
#endif