synaps/linalg/VectDse.h File Reference


Detailed Description

Dense vectors.

Dense vectors with the usual operations of a vector space.

Definition in file VectDse.h.

Go to the source code of this file.

Namespaces

namespace  let
namespace  arithm
namespace  type

Classes

struct  VectDse< C, R >
struct  arithm::structureof< VectDse< C, R > >
struct  type::instanceof< VectDse< C >, Y >

Defines

#define template_arg_list   template<class Ca, class Ra, class Cb, class Rb>
#define parm0   VectDse<Ca,Ra>
#define parm1   VectDse<Cb,Rb>
#define template_arg_list   template<class C, class R>
#define parm0   VectDse<C,R>
#define parm1   typename VectDse<C,R>::value_type
#define template_arg_list   template<class C, class R, class K>
#define parm1   typename K::integer
#define parm1   typename K::rational
#define parm1   typename K::floating
#define template_arg_list   template<class C, class R>
#define parm0   VectDse<C,R>

Functions

template<class Ca, class Ra, class Cb, class Rb>
void let::assign (VectDse< Ca, Ra > &a, const VectDse< Cb, Rb > &b)
template<class Ca, class Ra, class Cb, class Rb>
void let::copy (VectDse< Ca, Ra > &v, VectDse< Cb, Rb > *t)
template<class Ca, class Ra, class Cb, class Rb>
void let::copy (VectDse< Ca, Ra > &a, const VectDse< Cb, Rb > &b)
template<class Ca, class Ra, class TEXP>
void let::copy (VectDse< Ca, Ra > &a, const TEXP &b)
template<class C, class R>
std::ostream & operator<< (std::ostream &os, const VectDse< C, R > &V)
 Output operator.
template<class C, class R>
std::istream & operator>> (std::istream &is, VectDse< C, R > &V)
template<class C, class R>
void add (VectDse< C, R > &r, const VectDse< C, R > &a)
template<class C, class R>
void add (VectDse< C, R > &r, const VectDse< C, R > &a, const VectDse< C, R > &b)
template<class C, class R>
void sub (VectDse< C, R > &r, const VectDse< C, R > &a)
template<class C, class R>
void sub (VectDse< C, R > &r, const VectDse< C, R > &a, const VectDse< C, R > &b)
template<class C, class R>
void mul (C &r, const VectDse< C, R > &a, const VectDse< C, R > &b)
template<class C, class R>
void mul (VectDse< C, R > &r, const VectDse< C, R > &a, const C &b)
template<class C, class R>
void mul (VectDse< C, R > &r, const C &b, const VectDse< C, R > &a)
template<class C, class R>
void mul (VectDse< C, R > &r, const C &c)
template<class C, class R>
void div (VectDse< C, R > &r, const C &c)
template<class C, class R>
void div (VectDse< C, R > &r, const VectDse< C, R > &a, const C &c)
template<class C, class R>
void neg (VectDse< C, R > &r, const VectDse< C, R > &a)
 arithm::declare_binary_operator (template_arg_list, parm0, parm1, _add_, operator+)
 arithm::declare_binary_operator (template_arg_list, parm0, parm1, _sub_, operator-)
 arithm::declare_binary_operator (template_arg_list, parm0, parm1, _mul_, operator *)
 arithm::declare_binary_operator (template_arg_list, parm1, parm0, _mul_, operator *)
 arithm::declare_binary_operator (template_arg_list, parm0, parm1, _div_, operator/)
 arithm::declare_unary_operator (template_arg_list, parm0, _neg_, operator-)


Function Documentation

template<class C, class R>
std::ostream& operator<< ( std::ostream &  os,
const VectDse< C, R > &  V 
)

Output operator.

Definition at line 188 of file VectDse.h.

References topology::print().

template<class C, class R>
std::istream& operator>> ( std::istream &  is,
VectDse< C, R > &  V 
)

Input operator for standard matrices. The input format is of the form s c0 c1 ... where s is the number of elements.

Definition at line 199 of file VectDse.h.

References TENSOR3D::read().


SYNAPS DOCUMENTATION
logo