18 #ifndef __VECTOR_SPACE_BASIS_H 19 #define __VECTOR_SPACE_BASIS_H 58 std::size_t
dim()
const;
61 std::shared_ptr<const GenericVector>
operator[] (std::size_t i)
const;
66 const std::vector<std::shared_ptr<GenericVector>> _basis;
~VectorSpaceBasis()
Destructor.
Definition: VectorSpaceBasis.h:41
VectorSpaceBasis(const std::vector< std::shared_ptr< GenericVector >> basis)
Constructor.
Definition: VectorSpaceBasis.cpp:29
void orthogonalize(GenericVector &x) const
Orthogonalize x with respect to basis.
Definition: VectorSpaceBasis.cpp:98
void orthonormalize(double tol=1.0e-10)
Definition: VectorSpaceBasis.cpp:35
Definition: VectorSpaceBasis.h:33
std::size_t dim() const
Number of vectors in the basis.
Definition: VectorSpaceBasis.cpp:108
bool is_orthogonal(double tol=1.0e-10) const
Test if basis is orthogonal.
Definition: VectorSpaceBasis.cpp:78
bool is_orthonormal(double tol=1.0e-10) const
Test if basis is orthonormal.
Definition: VectorSpaceBasis.cpp:60
std::shared_ptr< const GenericVector > operator[](std::size_t i) const
Get a particular basis vector.
Definition: VectorSpaceBasis.cpp:114
This class defines a common interface for vectors.
Definition: GenericVector.h:47