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

#include <givmatdense.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, Dense >::Storage_t Storage_t
 
typedef Storage_t Element
 
typedef MatrixDom< Domain, DenseSelf_t
 

Public Member Functions

 ~MatrixDom ()
 
 MatrixDom ()
 
 MatrixDom (const Self_t &M)
 
 MatrixDom (const Domain_t &D)
 
void init (Element &r, Indice_t nr, Indice_t nc) const
 
void init (Element &r)
 
Type_toperator() (Element &r, Indice_t i, Indice_t j) const
 
const Type_toperator() (const Element &r, Indice_t i, Indice_t j) const
 
void assign (Element &r, const Element &a)
 
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 &r) const
 
Indice_t ncol (const Element &r) const
 
Domain_t subdomain () const
 
void mulin (Element &res, const Element &u) const
 
void mul (Element &res, const Element &u, const Element &v) const
 
void addin (Element &res, const Element &u) const
 
void add (Element &res, const Element &u, const Element &v) const
 
void subin (Element &res, const Element &u) const
 
void sub (Element &res, const Element &u, const Element &v) const
 
void negin (Element &res) const
 
void neg (Element &res, const Element &u) 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 axpy (Element &res, const Type_t &a, const Element &x, const Element &y) const
 
void axpyin (Element &res, const Type_t &a, const Element &x) const
 
void axmy (Element &res, const Type_t &a, const Element &x, const Element &y) const
 
void axmyin (Element &res, const Type_t &a, const Type_t &x) const
 
void axpy (Element &res, const Type_t &a, const Element &A, const Element &X, const Type_t &b, const Element &Y) const
 
void axpy (Element &res, const Element &A, const Element &X, const Element &Y) 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 add (Element &res, const Element &u, const Type_t &val) const
 
void add (Element &res, const Type_t &val, const Element &v) const
 
void sub (Element &res, const Element &u, const Type_t &val) const
 
void sub (Element &res, const Type_t &val, const Element &v) const
 
template<class OP >
void map (Element &res, OP &op) const
 
template<class OP >
void map (Element &res, OP &op, const Element &u) const
 
template<class OP >
void map (Element &, OP &, const Element &, const Element &) 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
 

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 Self_t M)
inline

◆ MatrixDom() [3/3]

MatrixDom ( const Domain_t D)
inline

Member Function Documentation

◆ init() [1/2]

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

◆ init() [2/2]

void init ( Element r)
inline

◆ operator()() [1/2]

Type_t& operator() ( Element r,
Indice_t  i,
Indice_t  j 
) const
inline

◆ operator()() [2/2]

const Type_t& operator() ( const Element r,
Indice_t  i,
Indice_t  j 
) const
inline

◆ assign()

void assign ( Element r,
const Element a 
)
inline

◆ areEqual()

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

◆ areNEqual()

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

◆ isZero()

int isZero ( const Element P) const

◆ nrow()

Indice_t nrow ( const Element r) const
inline

◆ ncol()

Indice_t ncol ( const Element r) const
inline

◆ subdomain()

Domain_t subdomain ( ) const
inline

◆ mulin() [1/2]

void mulin ( Element res,
const Element u 
) const

◆ mul() [1/4]

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

◆ addin()

void addin ( Element res,
const Element u 
) const

◆ add() [1/3]

void add ( Element res,
const Element u,
const Element v 
) const

◆ subin()

void subin ( Element res,
const Element u 
) const

◆ sub() [1/3]

void sub ( Element res,
const Element u,
const Element v 
) const

◆ negin()

void negin ( Element res) const

◆ neg()

void neg ( Element res,
const Element u 
) const

◆ mul() [2/4]

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

◆ 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

◆ axpy() [1/3]

void axpy ( Element res,
const Type_t a,
const Element x,
const Element y 
) const

◆ axpyin()

void axpyin ( Element res,
const Type_t a,
const Element x 
) const

◆ axmy()

void axmy ( Element res,
const Type_t a,
const Element x,
const Element y 
) const

◆ axmyin()

void axmyin ( Element res,
const Type_t a,
const Type_t x 
) const

◆ axpy() [2/3]

void axpy ( Element res,
const Type_t a,
const Element A,
const Element X,
const Type_t b,
const Element Y 
) const

◆ axpy() [3/3]

void axpy ( Element res,
const Element A,
const Element X,
const Element Y 
) const

◆ mulin() [2/2]

void mulin ( Element res,
const Type_t u 
) const

◆ mul() [3/4]

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

◆ mul() [4/4]

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

◆ add() [2/3]

void add ( Element res,
const Element u,
const Type_t val 
) const

◆ add() [3/3]

void add ( Element res,
const Type_t val,
const Element v 
) const

◆ sub() [2/3]

void sub ( Element res,
const Element u,
const Type_t val 
) const

◆ sub() [3/3]

void sub ( Element res,
const Type_t val,
const Element v 
) const

◆ map() [1/3]

void map ( Element res,
OP &  op 
) const

◆ map() [2/3]

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

◆ map() [3/3]

void map ( Element R,
OP &  op,
const Element A,
const Element B 
) const

◆ read() [1/2]

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

◆ 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

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