C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
linalg Namespace Reference

Contains utilities for linear algebra. More...

Classes

struct  VectorSpace
 Operator aggregate for a complex vector space built on top of Boost.Operator. More...
 

Typedefs

typedef CArray< 2 > CMatrix
 Complex matrix.
 
typedef CArray< 1 > CVector
 Complex vector.
 

Functions

CVectorapply (const CVector &a, CVector &b, const CMatrix &m)
 Applies matrix m on a and adds the result to b More...
 
CMatrixcalculateTwoTimesRealPartOfSelf (CMatrix &)
 Calculates two times the real part of a matrix in place
 

Detailed Description

Contains utilities for linear algebra.

Function Documentation

CVector& linalg::apply ( const CVector &  a,
CVector &  b,
const CMatrix &  m 
)

Applies matrix m on a and adds the result to b

\[b_i+=\sum_j m_{i,j}\,a_j.\]

Returns
reference to result b