LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
#include <Core.h>
Public Types | |
typedef boost::mpl::int_< N > | ND |
number of dimensions More... | |
typedef Core< N-1 > | Super |
base class More... | |
typedef boost::intrusive_ptr < Core > | Ptr |
intrusive_ptr to Core More... | |
typedef boost::intrusive_ptr < Core const > | ConstPtr |
const intrusive_ptr to Core More... | |
Public Member Functions | |
Ptr | copy () const |
int | getSize () const |
Return the size of the Nth dimension. More... | |
int | getStride () const |
Return the stride of the Nth dimension. More... | |
void | setSize (int size) |
Set the size of the Nth dimension. More... | |
void | setStride (int stride) |
Set the stride of the Nth dimension. More... | |
template<int M> | |
int | computeOffset (Vector< int, M > const &index) const |
Recursively compute the offset to an element. More... | |
template<int M> | |
void | fillShape (Vector< int, M > &shape) const |
Recursively fill a shape vector. More... | |
template<int M> | |
void | fillStrides (Vector< int, M > &strides) const |
Recursively fill a strides vector. More... | |
int | getNumElements () const |
Recursively determine the total number of elements. More... | |
Static Public Member Functions | |
template<int M> | |
static Ptr | create (Vector< int, M > const &shape, Vector< int, M > const &strides, Manager::Ptr const &manager=Manager::Ptr()) |
Create a Core::Ptr with the given shape, strides, and manager. More... | |
template<int M> | |
static Ptr | create (Vector< int, M > const &shape, DataOrderEnum order, Manager::Ptr const &manager=Manager::Ptr()) |
Create a Core::Ptr with the given shape and manager with contiguous strides. More... | |
static Ptr | create (Manager::Ptr const &manager=Manager::Ptr()) |
Create a Core::Ptr with the given manager and zero shape and strides. More... | |
Protected Member Functions | |
template<int M> | |
Core (Vector< int, M > const &shape, Vector< int, M > const &strides, Manager::Ptr const &manager) | |
template<int M> | |
Core (Vector< int, M > const &shape, Manager::Ptr const &manager) | |
template<int M> | |
Core (Vector< int, M > const &shape, int stride, Manager::Ptr const &manager) | |
Core (Manager::Ptr const &manager) | |
Core (Core const &other) | |
Private Attributes | |
int | _size |
int | _stride |
typedef boost::intrusive_ptr<Core const> ndarray::detail::Core< N >::ConstPtr |
typedef boost::mpl::int_<N> ndarray::detail::Core< N >::ND |
typedef boost::intrusive_ptr<Core> ndarray::detail::Core< N >::Ptr |
typedef Core<N-1> ndarray::detail::Core< N >::Super |
|
inlineprotected |
|
inlineprotected |
Definition at line 148 of file Core.h.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Recursively compute the offset to an element.
Definition at line 113 of file Core.h.
|
inline |
Definition at line 97 of file Core.h.
|
inlinestatic |
Create a Core::Ptr with the given shape, strides, and manager.
Definition at line 68 of file Core.h.
|
inlinestatic |
Create a Core::Ptr with the given shape and manager with contiguous strides.
Definition at line 78 of file Core.h.
|
inlinestatic |
Create a Core::Ptr with the given manager and zero shape and strides.
Definition at line 91 of file Core.h.
|
inline |
Recursively fill a shape vector.
Definition at line 119 of file Core.h.
|
inline |
Recursively fill a strides vector.
Definition at line 126 of file Core.h.
|
inline |
Recursively determine the total number of elements.
Definition at line 132 of file Core.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |