Comprises the common functionalities of StateVector and DensityOperator. More...
#include <ArrayBase.h>
Protected Types | |
typedef CArray< RANK > | ArrayLow |
The underlying storage. | |
typedef linalg::CVector | CVector |
Protected Member Functions | |
ArrayBase (const ArrayLow &arrayLow) | |
By-reference semantics (basically the copy of a blitz::Array ). Apart from this, copying is not possible. | |
ArrayBase & | operator= (const ArrayLow &arrayLow) |
Assignment with by-value semantics (like the assignment of a blitz::Array ). More... | |
double | frobeniusNorm () const |
The entrywise array norm. More... | |
The underlying ArrayLow | |
const ArrayLow & | getArray () const |
ArrayLow & | getArray () |
Naive vector-space operations | |
void | operator+= (const ArrayBase &arrayBase) |
void | operator-= (const ArrayBase &arrayBase) |
Naive vector-space operations allowing also for mixed-mode arithmetic | |
template<typename OTHER > | |
void | operator*= (const OTHER &dc) |
template<typename OTHER > | |
void | operator/= (const OTHER &dc) |
One-dimensional view of the underlying data | |
const CVector | vectorView () const |
1d view created on the fly via blitzplusplus::unaryArray. More... | |
CVector | vectorView () |
” | |
Comprises the common functionalities of StateVector and DensityOperator.
Definition at line 21 of file ArrayBase.h.
|
inlineprotected |
The entrywise array norm.
with running through all the multi-indices.
Definition at line 76 of file ArrayBase.h.
|
inlineprotected |
Assignment with by-value semantics (like the assignment of a blitz::Array
).
Default assignment synthetised by the compiler ditto.
Definition at line 35 of file ArrayBase.h.
|
inlineprotected |
1d view created on the fly via blitzplusplus::unaryArray.
Definition at line 66 of file ArrayBase.h.