CNORXZ
Container with Native Operation Routines and Expressions
|
#include <index_pack.h>
Public Member Functions | |
DEFAULT_MEMBERS (DPack) | |
DPack (const Vector< XIndexPtr > &is) | |
DPack (Vector< XIndexPtr > &&is) | |
template<class... Indices> | |
DPack (const SPack< Indices... > &p) | |
const Vector< XIndexPtr > & | all () const |
SizeT | size () const |
const XIndexPtr & | get (SizeT i) const |
const XIndexPtr & | operator[] (SizeT i) const |
DPack | rmul (const Sptr< DIndex > &i) const |
DPack | lmul (const Sptr< DIndex > &i) const |
DPack | mul (const DPack &p) const |
RangePtr | mkRange () const |
SizeT | lex () const |
SizeT | pos () const |
Dynamic index pack. Containes array of shared pointers to XIndex instances.
Definition at line 133 of file index_pack.h.
Create pack from XIndex instance
is | Vector of XIndex pointers |
Definition at line 16 of file index_pack.cc.
Create pack from XIndex instance (move input vector)
is | Vector of XIndex pointers |
Definition at line 20 of file index_pack.cc.
Create pack from a static pack (SPack)
p | static pack used for construction |
Definition at line 121 of file index_pack.cc.h.
get underlying index pointer vector
Definition at line 24 of file index_pack.cc.
CNORXZ::DPack::DEFAULT_MEMBERS | ( | DPack | ) |
default constructors and assignments
get pack element
i | Position |
Definition at line 34 of file index_pack.cc.
SizeT CNORXZ::DPack::lex | ( | ) | const |
Get lexicographic position if pack was transformed to a (trivial) multi-index.
Definition at line 77 of file index_pack.cc.
Append index on the l.h.s.
i | DIndex to be appended |
Definition at line 51 of file index_pack.cc.
RangePtr CNORXZ::DPack::mkRange | ( | ) | const |
create a range from the index pack
Definition at line 69 of file index_pack.cc.
Append pack on the r.h.s.
p | Pack to be appnded |
Definition at line 60 of file index_pack.cc.
get pack element
i | Position |
Definition at line 39 of file index_pack.cc.
SizeT CNORXZ::DPack::pos | ( | ) | const |
Get lexicographic position if pack was transformed to a (trivial) multi-index.
Definition at line 91 of file index_pack.cc.
Append index on the r.h.s.
i | DIndex to be appended |
Definition at line 44 of file index_pack.cc.
SizeT CNORXZ::DPack::size | ( | ) | const |
get pack size i.e. dimension (non-recursive)
Definition at line 29 of file index_pack.cc.