BmnRoot
Loading...
Searching...
No Matches
BmnMatrixMath.h
Go to the documentation of this file.
1#ifndef BMNMATRIXMATH_H_
2#define BMNMATRIXMATH_H_
3
4#include <vector>
5#include "Rtypes.h"
6using namespace std;
7//Matrix operations
8
9/* 5x5 symmetric matrix inverse */
10Bool_t InvSym15(vector<Double_t>& a);
11
12/* Multiplication of two 5x5 matrices */
13Bool_t Mult25(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
14
15/* Multiplication of 5x5 matrix and 5x1 vector */
16Bool_t Mult25On5(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
17
18/* Multiplication of 5x5 matrix and 5x1 vector */
19Bool_t Mult15On5(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
20
21/* Transpose of 5x5 matrix */
22Bool_t Transpose25(vector<Double_t>& a);
23
24/* Subtraction of two matrices*/
25Bool_t Subtract(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
26
27/* Addition of two matrices*/
28Bool_t Add(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
29
30/* a*b*a^T */
31Bool_t Similarity(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
32
33/* Multiplication of two 5x5 matrices */
34Bool_t Mult15On25(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
35
36/* Multiplication of two 5x5 matrices */
37Bool_t Mult25On15(const vector<Double_t>& a, const vector<Double_t>& b, vector<Double_t>& c);
38
39#endif
40
Bool_t Similarity(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Mult25On5(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Subtract(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Mult25(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Mult15On25(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Transpose25(vector< Double_t > &a)
Bool_t Mult15On5(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t InvSym15(vector< Double_t > &a)
Bool_t Add(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
Bool_t Mult25On15(const vector< Double_t > &a, const vector< Double_t > &b, vector< Double_t > &c)
STL namespace.