synaps/linalg/MatrDse.h File Reference


Detailed Description

Dense matrices.

Definition in file MatrDse.h.

Go to the source code of this file.

Namespaces

namespace  type

Classes

struct  MatrDse< C, R >
struct  type::instanceof< MatrDse< C >, Y >

Functions

template<class C, class R>
MatrDse< C, R > Transpose (const MatrDse< C, R > &M)
template<class C, class R>
std::ostream & operator<< (std::ostream &os, const MatrDse< C, R > &p)
 Output operator for standard matrices.
template<class C, class R>
std::istream & operator>> (std::istream &is, MatrDse< C, R > &M)
template<class C>
MatrDse< C > diag (unsigned n, const C &c)


Function Documentation

template<class C>
MatrDse<C> diag ( unsigned  n,
const C &  c 
)

Compute the diagonal matrix of size n, with c on the diagonal.

Definition at line 247 of file MatrDse.h.

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

Output operator for standard matrices.

Definition at line 227 of file MatrDse.h.

References topology::print().

template<class C, class R>
std::istream& operator>> ( std::istream &  is,
MatrDse< C, R > &  M 
)

Input operator for standard matrices. The input format is of the form m n c00 c01 ... where m is the number of rows, n is the number of columns and the coefficients are read by rows.

Definition at line 239 of file MatrDse.h.

References TENSOR3D::read().


SYNAPS DOCUMENTATION
logo