-
Notifications
You must be signed in to change notification settings - Fork 0
/
linearalgebra.h
29 lines (18 loc) · 932 Bytes
/
linearalgebra.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef LINEARALGEBRA_H
#define LINEARALGEBRA_H
#include <vector>
using namespace std;
bool symmetric (const vector< vector<double> > & C);
int matrix_multiplication ( vector< vector<double> > & A, vector< vector<double> > & B, vector< vector<double> > & C);
int matrix_transpose( vector< vector<double> > & A, vector< vector<double> > & At);
int matrix_cholesky( const vector< vector<double> > & A,
vector< vector<double> > & R,
char uplo);
double matrix_log_determinant (const vector< vector<double> > & C);
int matrix_inverse_triangular ( const vector< vector<double> > & R,
vector< vector<double> > & X,
char uplo);
int matrix_inverse_cholesky ( const vector< vector<double> > & A,
vector< vector<double> > & invA);
void matrix_display (const vector< vector<double> > & A);
#endif