CPP Linear Algebra ToolBox
0.1.0
lsq.h
Go to the documentation of this file.
1
10
#ifndef LSQ_H
11
#define LSQ_H
12
13
#include "
squareMatrix.h
"
14
15
class
LSQ
{
16
public
:
17
18
/* CONSTRUCTORS */
19
LSQ
();
20
LSQ
(
const
LSQ
& );
21
LSQ
(
const
Matrix
* ,
const
Vector
* );
22
23
/* DESTRUCTOR */
24
~LSQ
();
25
26
/* METHODS */
27
void
solve
();
28
void
solve
(
double
);
29
double
eval
();
30
31
private
:
32
Matrix
* A;
33
Vector
* b;
34
Vector
* x;
35
36
double
lambda;
37
38
SquareMatrix
* AAt;
39
SquareMatrix
* AtA;
40
};
41
42
#endif
LSQ
Definition:
lsq.h:15
LSQ::LSQ
LSQ(const LSQ &)
LSQ::solve
void solve(double)
LSQ::~LSQ
~LSQ()
LSQ::eval
double eval()
LSQ::solve
void solve()
LSQ::LSQ
LSQ()
LSQ::LSQ
LSQ(const Matrix *, const Vector *)
Matrix
A class describing a Matrix object. Matrices are array of size (n,m) whre n and m are integer greater...
Definition:
matrix.h:29
SquareMatrix
Definition:
squareMatrix.h:15
Vector
A lightweight class describing a Vector object. Vectors are array with size n (>0) of doubles.
Definition:
vector.h:25
squareMatrix.h
Email
Github
include
header
lsq.h
Generated by
1.9.1