Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
Public Member Functions | Friends | List of all members
TSparseVector< VT > Class Template Reference

Public Member Functions

 TSparseVector (int ldim)
 
 TSparseVector (int ldim, int pdim)
 
 TSparseVector (const TSparseVector< VT > &vec)
 
 operator TVector< VT > ()
 
void Copy (const TSparseVector< VT > &vec)
 
void Copy (const TVector< VT > &vec)
 
void New (int ldim, int nbuf=0)
 
void Allocate (int nbuf)
 
void Relink (const TSparseVector< VT > &vec)
 
void Shrink ()
 
void Initialise (int nz, int *idx)
 
void Clear ()
 
TSparseVectoroperator*= (const VT &vt)
 
VT operator& (const TVector< VT > &vec) const
 
int LDim () const
 
int PDim () const
 
VT Get (int i) const
 
void Put (int i, VT val)
 
void Add (int i, VT val)
 
void Erase (int i)
 
int PIndex (int i) const
 
int Insert (int i)
 
void SparseOutput (ostream &os) const
 
VT & operator[] (int i) const
 
int LIndex (int i) const
 
void SetIndex (int pi, int li)
 

Friends

class TSparseMatrix< VT >
 
VT iprod (const TSparseVector< VT > &v1, const TSparseVector< VT > &v2, int from=0, int to=-1)
 
TVector< VT > ToVector (const TSparseVector< VT > &vec)
 
ostream & operator<< (ostream &os, const TSparseVector< VT > &vec)
 
VT iprod_sorted (const TSparseVector< VT > &v1, const TSparseVector< VT > &v2, int from=0, int to=-1)
 
bool overlap_sorted (const TSparseVector< VT > &v1, const TSparseVector< VT > &v2, int from=0, int to=-1)
 

The documentation for this class was generated from the following file: