mixpp: bdm::fsqmat Class Reference

bdm::fsqmat Class Reference

Fake sqmat. This class maps sqmat operations to operations on full matrix. More...

#include <square_mat.h>

Inheritance diagram for bdm::fsqmat:

bdm::sqmat List of all members.

Public Member Functions

void opupdt (const vec &v, double w)
mat to_mat () const
void mult_sym (const mat &C)
void mult_sym_t (const mat &C)
void mult_sym (const mat &C, fsqmat &U) const
 store result of mult_sym in external matrix $U$
void mult_sym_t (const mat &C, fsqmat &U) const
 store result of mult_sym_t in external matrix $U$
void clear ()
 fsqmat ()
 Default initialization.
 fsqmat (const int dim0)
 Default initialization with proper size.
 fsqmat (const mat &M)
 Constructor.
 fsqmat (const fsqmat &M, const ivec &perm)
 fsqmat (const vec &d)
 Constructor.
virtual ~fsqmat ()
 Destructor for future use;.
void inv (fsqmat &Inv) const
 Matrix inversion preserving the chosen form.
double logdet () const
double qform (const vec &v) const
double invqform (const vec &v) const
vec sqrt_mult (const vec &v) const
void add (const fsqmat &fsq2, double w=1.0)
 Add another matrix in fsq form with weight w.
void setD (const vec &nD)
 Access functions.
vec getD ()
 Access functions.
void setD (const vec &nD, int i)
 Access functions.
fsqmatoperator+= (const fsqmat &A)
 add another fsqmat matrix
fsqmatoperator-= (const fsqmat &A)
 subtrack another fsqmat matrix
fsqmatoperator *= (double x)
 multiply by a scalar
 operator mat & ()
 cast to normal mat
mat & _M ()
 access function

Protected Attributes

mat M
 Full matrix on which the operations are performed.

Friends

std::ostream & operator<< (std::ostream &os, const fsqmat &sq)
 print full matrix

Detailed Description

Fake sqmat. This class maps sqmat operations to operations on full matrix.

This class can be used to compare performance of algorithms using decomposed matrices with perormance of the same algorithms using full matrices;


Constructor & Destructor Documentation

bdm::fsqmat::fsqmat ( const fsqmat M,
const ivec &  perm 
) [inline]

Some templates require this constructor to compile, but it shouldn't actually be called.


Member Function Documentation

void bdm::fsqmat::inv ( fsqmat Inv  )  const

Matrix inversion preserving the chosen form.

Parameters:
Inv a space where the inverse is stored.


The documentation for this class was generated from the following files:
Generated on 2 Dec 2013 for mixpp by  doxygen 1.4.7