5 #include "TMatrixTSym.h"
19 std::cout <<
"Start matrix math test..." << std::endl;
29 std::cout <<
"Finish matrix math test..." << std::endl;
33 std::cout <<
"Test InvSym15 #" << testId << std::endl;
34 std::vector<litfloat> input1(15);
35 for (
int i = 0;
i < 15;
i++) {
36 input1[
i] = gRandom->Rndm();
41 std::vector<litfloat> a1(input1);
47 TMatrixTSym<litfloat> r1(5, rd1);
53 bool testPassed =
true;
54 for (
int i = 0;
i < 15;
i++) {
61 std::cout <<
"Test InvSym15 #" << testId <<
" PASSED" << std::endl;
63 std::cout <<
"Test InvSym15 #" << testId <<
" !!!NOT PASSED!!!"
69 std::cout <<
"Test Mult15On5 #" << testId << std::endl;
70 std::vector<litfloat> input1(15);
71 for (
int i = 0;
i < 15;
i++) {
72 input1[
i] = gRandom->Rndm();
74 std::vector<litfloat> input2(5);
75 for (
int i = 0;
i < 5;
i++) {
76 input2[
i] = gRandom->Rndm();
82 std::vector<litfloat> a1(5);
88 TMatrixTSym<litfloat> r1(5, rd1);
89 TMatrixT<litfloat> v1(5, 1, &input2[0]);
90 TMatrixT<litfloat> u1(5, 1);
98 bool testPassed =
true;
99 for (
int i = 0;
i < 5;
i++) {
106 std::cout <<
"Test Mult15On5 #" << testId <<
" PASSED" << std::endl;
108 std::cout <<
"Test Mult15On5 #" << testId <<
" !!!NOT PASSED!!!"
161 std::stringstream out;
162 for (
int i = 0;
i < a.size();
i++) {
170 std::stringstream out;
171 for (
int i = 0;
i < n;
i++) {