Givaro
Public Types | Public Member Functions
VectorDom< Domain, Sparse > Class Template Reference

#include <givvectorsparse.h>

Public Types

typedef Domain::Rep Type_t
 
typedef Domain Domain_t
 
typedef int Indice_t
 
typedef Sparse StorageTag_t
 
typedef RetVectorStorage< Type_t, Sparse >::Storage_t Storage_t
 
typedef Storage_t Rep
 
typedef VectorDom< Domain, SparseSelf_t
 
typedef RetVectorStorage< Type_t, Sparse >::Iterator_t Iterator_t
 
typedef RetVectorStorage< Type_t, Sparse >::constIterator_t constIterator_t
 
typedef RetVectorStorage< Type_t, Sparse >::IndiceIterator_t IndiceIterator_t
 

Public Member Functions

 ~VectorDom ()
 
 VectorDom (const Domain &D=Domain())
 
 VectorDom (const Self_t &V)
 
int operator== (const VectorDom< Domain, Sparse > &BC) const
 
int operator!= (const VectorDom< Domain, Sparse > &BC) const
 
void init (Rep &r, size_t dim=0) const
 
void assign (Rep &r, const Rep &v)
 
int areEqual (const Rep &P, const Rep &Q) const
 
int areNEqual (const Rep &P, const Rep &Q) const
 
int iszero (const Rep &P) const
 
size_t dim (const Rep &u) const
 
const Domainsubdomain () const
 
void add (Rep &res, const Rep &op1, const Rep &op2) const
 
void sub (Rep &res, const Rep &op1, const Rep &op2) const
 
void dot (Type_t &res, const Rep &u, const Rep &v) const
 
void addin (Rep &res, const Rep &u) const
 
void add (Rep &res, const Rep &u, const Type_t &val) const
 
void add (Rep &res, const Type_t &val, const Rep &v) const
 
void subin (Rep &res, const Rep &u) const
 
void sub (Rep &res, const Rep &u, const Type_t &val) const
 
void sub (Rep &res, const Type_t &val, const Rep &v) const
 
void negin (Rep &res) const
 
void neg (Rep &res, const Rep &u) const
 
void compact (Rep &u, const VectorDom< Domain, Dense > &VDom, const typename VectorDom< Domain, Dense >::Rep &v) const
 
void compact (Rep &u, const VectorDom< Domain, Sparse > &VDom, const typename VectorDom< Domain, Sparse >::Rep &v) const
 
template<class UNOP >
void map (Rep &r, const UNOP &op, const Rep &u) const
 
template<class UNOP >
void map (Rep &r, UNOP &op, const Rep &u) const
 
ostream & write (ostream &o) const
 
istream & read (istream &i)
 
ostream & write (ostream &o, const Rep &r) const
 
istream & read (istream &i, Rep &r) const
 
Iterator_t begin_data (Rep &U) const
 
Iterator_t end_data (Rep &U) const
 
constIterator_t begin_data (const Rep &U) const
 
constIterator_t end_data (const Rep &U) const
 
IndiceIterator_t begin_indice (const Rep &U) const
 
IndiceIterator_t end_indice (const Rep &U) const
 

Member Typedef Documentation

typedef Domain Domain_t
typedef int Indice_t
typedef Storage_t Rep

Constructor & Destructor Documentation

~VectorDom ( )
inline
VectorDom ( const Domain D = Domain())
inline
VectorDom ( const Self_t V)
inline

Member Function Documentation

int operator== ( const VectorDom< Domain, Sparse > &  BC) const
inline
int operator!= ( const VectorDom< Domain, Sparse > &  BC) const
inline
void init ( Rep r,
size_t  dim = 0 
) const
inline
void assign ( Rep r,
const Rep v 
)
inline
int areEqual ( const Rep P,
const Rep Q 
) const
int areNEqual ( const Rep P,
const Rep Q 
) const
int iszero ( const Rep P) const
size_t dim ( const Rep u) const
inline
const Domain& subdomain ( ) const
inline
void add ( Rep res,
const Rep op1,
const Rep op2 
) const
inline
void sub ( Rep res,
const Rep op1,
const Rep op2 
) const
inline
void dot ( Type_t res,
const Rep u,
const Rep v 
) const
inline
void addin ( Rep res,
const Rep u 
) const
inline
void add ( Rep res,
const Rep u,
const Type_t val 
) const
inline
void add ( Rep res,
const Type_t val,
const Rep v 
) const
inline
void subin ( Rep res,
const Rep u 
) const
inline
void sub ( Rep res,
const Rep u,
const Type_t val 
) const
inline
void sub ( Rep res,
const Type_t val,
const Rep v 
) const
inline
void negin ( Rep res) const
inline
void neg ( Rep res,
const Rep u 
) const
inline
void compact ( Rep u,
const VectorDom< Domain, Dense > &  VDom,
const typename VectorDom< Domain, Dense >::Rep v 
) const
void compact ( Rep u,
const VectorDom< Domain, Sparse > &  VDom,
const typename VectorDom< Domain, Sparse >::Rep v 
) const
void map ( Rep r,
const UNOP &  op,
const Rep u 
) const
inline
void map ( Rep r,
UNOP &  op,
const Rep u 
) const
inline
ostream & write ( ostream &  o) const
istream & read ( istream &  i)
ostream & write ( ostream &  o,
const Rep r 
) const
istream & read ( istream &  i,
Rep r 
) const
Iterator_t begin_data ( Rep U) const
inline
Iterator_t end_data ( Rep U) const
inline
constIterator_t begin_data ( const Rep U) const
inline
constIterator_t end_data ( const Rep U) const
inline
IndiceIterator_t begin_indice ( const Rep U) const
inline
IndiceIterator_t end_indice ( const Rep U) const
inline

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