C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
blitzplusplus::basi::Indexer< RANK, V > Class Template Reference

Performs the slicing on an array already transposed by Transposer. More...

#include <BlitzArraySliceIterator.h>

+ Inheritance diagram for blitzplusplus::basi::Indexer< RANK, V >:
+ Collaboration diagram for blitzplusplus::basi::Indexer< RANK, V >:

Static Public Member Functions

static ttd::ResCArray< V > & index (CArray< RANK > &array, ttd::ResCArray< V > &resArray, const ttd::VecIdxTiny< RANK, V > &idx)
 Static worker. More...
 
- Static Public Member Functions inherited from blitzplusplus::basi::Transposer< RANK, V >
static CArray< RANK > & transpose (CArray< RANK > &)
 Static worker. More...
 

Detailed Description

template<int RANK, typename V>
class blitzplusplus::basi::Indexer< RANK, V >

Performs the slicing on an array already transposed by Transposer.

Definition at line 172 of file BlitzArraySliceIterator.h.

Member Function Documentation

template<int RANK, typename V >
static ttd::ResCArray<V>& blitzplusplus::basi::Indexer< RANK, V >::index ( CArray< RANK > &  array,
ttd::ResCArray< V > &  resArray,
const ttd::VecIdxTiny< RANK, V > &  idx 
)
inlinestatic

Static worker.

Returns
Reference to resArray
Semantics
  • ~~~ static const int RANK=11;

    CArray<RANK> psi;

    typedef tmptools::Vector<3,6,1,9,7> Vec;

    ttd::ResCArray<Vec> psiRes;

    ttd::VecIdxTiny<RANK,Vec> idxTiny;

    Indexer<RANK,Vec>::index(psi,psiRes,idxTiny);

  • ~~~ is equivalent to
  • ~~~ const blitz::Range a(blitz::Range::all()); psiRes.reference(psi(0,a,2,a,4,5,a,a,8,a,10));
  • ~~~
Parameters
arrayThe array to be sliced
resArrayThe array storing the result
idxSet of dummy indices

Definition at line 201 of file BlitzArraySliceIterator.h.


The documentation for this class was generated from the following file: