Class for template sparse vectors; use with SparseMatrix.
Definition in file SparseVector.hpp.
#include "MathBase.hpp"
#include <cstdlib>
#include <algorithm>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include "Matrix.hpp"
#include "Vector.hpp"
Go to the source code of this file.
Classes | |
class | gnsstk::SparseMatrix< T > |
class | gnsstk::SparseVector< T > |
forward declarations More... | |
class | gnsstk::SparseVector< T > |
forward declarations More... | |
class | gnsstk::SVecProxy< T > |
Namespaces | |
gnsstk | |
For Sinex::InputHistory. | |
Functions | |
template<class T > | |
T | gnsstk::cosVec (const SparseVector< T > &S1, const SparseVector< T > &S2) |
template<class T > | |
T | gnsstk::cosVec (const SparseVector< T > &SV, const Vector< T > &V) |
template<class T > | |
T | gnsstk::cosVec (const Vector< T > &V, const SparseVector< T > &SV) |
template<class T > | |
T | gnsstk::dot (const SparseVector< T > &SL, const SparseVector< T > &SR) |
dot (SparseVector, SparseVector) More... | |
template<class T > | |
T | gnsstk::dot (const SparseVector< T > &SL, const Vector< T > &R) |
dot (SparseVector, Vector) More... | |
template<class T > | |
T | gnsstk::dot (const Vector< T > &L, const SparseVector< T > &SR) |
dot (Vector, SparseVector) More... | |
template<class T > | |
T | gnsstk::dot_lim (const SparseVector< T > &SL, const SparseVector< T > &SR, const unsigned int kb, const unsigned int ke) |
dot (SparseVector, SparseVector) but only use indexes k=kb, k<ke More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::identSparse (const unsigned int dim) |
template<class T > | |
SparseMatrix< T > | gnsstk::inverse (const SparseMatrix< T > &A) |
template<class T > | |
SparseMatrix< T > | gnsstk::inverseLT (const SparseMatrix< T > &L, T *ptrSmall, T *ptrBig) |
Compute inverse of lower-triangular SparseMatrix. More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::lowerCholesky (const SparseMatrix< T > &A) |
template<class T > | |
T | gnsstk::max (const SparseVector< T > &SV) |
template<class T > | |
T | gnsstk::maxabs (const SparseVector< T > &SV) |
template<class T > | |
T | gnsstk::min (const SparseVector< T > &SV) |
template<class T > | |
T | gnsstk::minabs (const SparseVector< T > &SV) |
template<class T > | |
T | gnsstk::norm (const SparseVector< T > &SV) |
template<class T > | |
SparseMatrix< T > | gnsstk::operator* (const Matrix< T > &L, const SparseMatrix< T > &R) |
Matrix multiply: SparseMatrix = Matrix * SparseMatrix. More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::operator* (const SparseMatrix< T > &L, const Matrix< T > &R) |
Matrix multiply: SparseMatrix = SparseMatrix * Matrix. More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::operator* (const SparseMatrix< T > &L, const SparseMatrix< T > &R) |
Matrix multiply: SparseMatrix = SparseMatrix * SparseMatrix. More... | |
template<class T > | |
SparseVector< T > | gnsstk::operator* (const SparseMatrix< T > &L, const SparseVector< T > &V) |
Matrix,Vector multiply: SparseVector = SparseMatrix * SparseVector. More... | |
template<class T > | |
SparseVector< T > | gnsstk::operator* (const SparseMatrix< T > &L, const Vector< T > &V) |
Matrix,Vector multiply: SparseVector = SparseMatrix * Vector. More... | |
template<class T > | |
SparseVector< T > | gnsstk::operator+ (const SparseVector< T > &L, const SparseVector< T > &R) |
template<class T > | |
SparseVector< T > | gnsstk::operator+ (const SparseVector< T > &L, const Vector< T > &R) |
template<class T > | |
SparseVector< T > | gnsstk::operator+ (const Vector< T > &L, const SparseVector< T > &R) |
template<class T > | |
SparseVector< T > | gnsstk::operator- (const SparseVector< T > &L, const SparseVector< T > &R) |
template<class T > | |
SparseVector< T > | gnsstk::operator- (const SparseVector< T > &L, const Vector< T > &R) |
template<class T > | |
SparseVector< T > | gnsstk::operator- (const Vector< T > &L, const SparseVector< T > &R) |
template<class T > | |
std::ostream & | gnsstk::operator<< (std::ostream &os, const SparseVector< T > &SV) |
template<class T > | |
SparseMatrix< T > | gnsstk::operator|| (const SparseMatrix< T > &L, const SparseMatrix< T > &R) |
template<class T > | |
SparseMatrix< T > | gnsstk::operator|| (const SparseMatrix< T > &L, const Vector< T > &V) |
Concatenation SparseMatrix || Vector TD the rest of them... More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::SparseHouseholder (const SparseMatrix< T > &A) |
Householder transformation of a matrix. More... | |
template<class T > | |
void | gnsstk::SrifMU (Matrix< T > &R, Vector< T > &Z, SparseMatrix< T > &A, const unsigned int M) |
template<class T > | |
void | gnsstk::SrifMU (Matrix< T > &R, Vector< T > &Z, SparseMatrix< T > &P, Vector< T > &D, const unsigned int M) |
template<class T > | |
SparseMatrix< T > | gnsstk::transform (const SparseMatrix< T > &M, const SparseMatrix< T > &C) |
template<class T > | |
Vector< T > | gnsstk::transformDiag (const SparseMatrix< T > &P, const Matrix< T > &C) |
Compute diagonal of P*C*P^T, ie diagonal of transform of square Matrix C. More... | |
template<class T > | |
SparseMatrix< T > | gnsstk::transpose (const SparseMatrix< T > &M) |
transpose More... | |