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

#include <givmatsparse.h>

Public Types

typedef Domain Domain_t
 
typedef Domain::Element Type_t
 
typedef size_t Indice_t
 
typedef Dense StorageTag_t
 
typedef RetMatrixStorage< Type_t, Sparse >::Storage_t Storage_t
 
typedef Storage_t Element
 
typedef MatrixDom< Domain, SparseSelf_t
 

Public Member Functions

 ~MatrixDom ()
 
 MatrixDom ()
 
 MatrixDom (const Domain &D)
 
 MatrixDom (const Self_t &M)
 
void init (Element &r, Indice_t nr, Indice_t nc) const
 
void init (Element &r) const
 
void init (Element &A, const Element &B) const
 
void assign (Element &r, const Element &a) const
 
int areEqual (const Element &P, const Element &Q) const
 
int areNEqual (const Element &P, const Element &Q) const
 
int isZero (const Element &P) const
 
Indice_t nrow (const Element &A) const
 
Indice_t ncol (const Element &A) const
 
Domain_t subdomain () const
 
void mulin (Element &res, const Type_t &u) const
 
void mul (Element &res, const Type_t &u, const Element &v) const
 
void mul (Element &res, const Element &u, const Type_t &v) const
 
void mul (typename VectorDom< Domain, Dense >::Element &res, const Element &M, const VectorDom< Domain, Dense > &VD, const typename VectorDom< Domain, Dense >::Element &u) const
 
void multrans (typename VectorDom< Domain, Dense >::Element &res, const Element &M, const VectorDom< Domain, Dense > &VS, const typename VectorDom< Domain, Dense >::Element &u) const
 
void negin (Element &P) const
 
void neg (Element &res, const Element &u) const
 
template<class OP >
void map (Element &res, OP &op) const
 
template<class OP >
void map (Element &res, OP &op, const Element &u) const
 
std::istream & read (std::istream &s)
 
std::ostream & write (std::ostream &s) const
 
std::istream & read (std::istream &s, Element &r) const
 
std::ostream & write (std::ostream &s, const Element &r) const
 
void compact (Element &Ms, const MatrixDom< Domain, Dense > &MD, const typename MatrixDom< Domain, Dense >::Element &Md)
 
template<class UNOP >
void map (Element &res, UNOP &op) const
 
template<class UNOP >
void map (Element &res, UNOP &op, const Element &u) const
 

Member Typedef Documentation

◆ Domain_t

typedef Domain Domain_t

◆ Type_t

◆ Indice_t

typedef size_t Indice_t

◆ StorageTag_t

◆ Storage_t

◆ Element

typedef Storage_t Element

◆ Self_t

Constructor & Destructor Documentation

◆ ~MatrixDom()

~MatrixDom ( )
inline

◆ MatrixDom() [1/3]

MatrixDom ( )
inline

◆ MatrixDom() [2/3]

MatrixDom ( const Domain D)
inline

◆ MatrixDom() [3/3]

MatrixDom ( const Self_t M)
inline

Member Function Documentation

◆ init() [1/3]

void init ( Element r,
Indice_t  nr,
Indice_t  nc 
) const
inline

◆ init() [2/3]

void init ( Element r) const
inline

◆ init() [3/3]

void init ( Element A,
const Element B 
) const
inline

◆ assign()

void assign ( Element r,
const Element a 
) const
inline

◆ areEqual()

int areEqual ( const Element P,
const Element Q 
) const
inline

◆ areNEqual()

int areNEqual ( const Element P,
const Element Q 
) const
inline

◆ isZero()

int isZero ( const Element P) const
inline

◆ nrow()

Indice_t nrow ( const Element A) const
inline

◆ ncol()

Indice_t ncol ( const Element A) const
inline

◆ subdomain()

Domain_t subdomain ( ) const
inline

◆ mulin()

void mulin ( Element res,
const Type_t u 
) const
inline

◆ mul() [1/3]

void mul ( Element res,
const Type_t u,
const Element v 
) const
inline

◆ mul() [2/3]

void mul ( Element res,
const Element u,
const Type_t v 
) const
inline

◆ mul() [3/3]

void mul ( typename VectorDom< Domain, Dense >::Element res,
const Element M,
const VectorDom< Domain, Dense > &  VD,
const typename VectorDom< Domain, Dense >::Element u 
) const
inline

◆ multrans()

void multrans ( typename VectorDom< Domain, Dense >::Element res,
const Element M,
const VectorDom< Domain, Dense > &  VS,
const typename VectorDom< Domain, Dense >::Element u 
) const
inline

◆ negin()

void negin ( Element P) const
inline

◆ neg()

void neg ( Element res,
const Element u 
) const
inline

◆ map() [1/4]

void map ( Element res,
OP &  op 
) const

◆ map() [2/4]

void map ( Element res,
OP &  op,
const Element u 
) const

◆ read() [1/2]

std::istream & read ( std::istream &  s)
inline

◆ write() [1/2]

std::ostream & write ( std::ostream &  s) const
inline

◆ read() [2/2]

std::istream & read ( std::istream &  s,
Element r 
) const

◆ write() [2/2]

std::ostream & write ( std::ostream &  s,
const Element r 
) const

◆ compact()

void compact ( Element Ms,
const MatrixDom< Domain, Dense > &  MD,
const typename MatrixDom< Domain, Dense >::Element Md 
)

◆ map() [3/4]

void map ( Element res,
UNOP &  op 
) const
inline

◆ map() [4/4]

void map ( Element res,
UNOP &  op,
const Element u 
) const
inline

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