KrisLibrary  1.0.0
GramSchmidt.h
1 #ifndef MATH_GRAM_SCHMIDT_H
2 #define MATH_GRAM_SCHMIDT_H
3 
4 #include "VectorTemplate.h"
5 
6 namespace Math {
7 
10 
14 template <class T>
15 int OrthonormalBasis(const VectorTemplate<T>* x, VectorTemplate<T>* basis, int n);
16 
18 template <class T>
19 int OrthogonalBasis(const VectorTemplate<T>* x, VectorTemplate<T>* basis, int n);
20 
22 template <class T>
23 void Orthogonalize(VectorTemplate<T>& x,const VectorTemplate<T>* basis, int n);
24 
26 } //namespace Math
27 
28 #endif
int OrthogonalBasis(const VectorTemplate< T > *x, VectorTemplate< T > *basis, int n)
Same as above, but does not normalize.
Definition: GramSchmidt.cpp:33
void Orthogonalize(VectorTemplate< T > &x, const VectorTemplate< T > *basis, int n)
orthogonalizes a vector w.r.t the orthogonal basis of n vectors
Definition: GramSchmidt.cpp:57
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12
int OrthonormalBasis(const VectorTemplate< T > *x, VectorTemplate< T > *basis, int n)
Definition: GramSchmidt.cpp:10