LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
CRTP implementation for Array and ArrayRef. More...
#include <ArrayBase.h>
Classes | |
struct | ResultOf |
A template metafunction class to determine the result of a view indexing operation. More... | |
Public Types | |
typedef Traits::Element | Element |
Data type of array elements. More... | |
typedef Traits::Iterator | Iterator |
Nested array or element iterator. More... | |
typedef Traits::Reference | Reference |
Nested array or element reference. More... | |
typedef Traits::Value | Value |
Nested array or element value type. More... | |
typedef Traits::ND | ND |
Number of dimensions (boost::mpl::int_). More... | |
typedef Traits::RMC | RMC |
Number of guaranteed row-major contiguous dimensions, counted from the end (boost::mpl::int_). More... | |
typedef Vector< int, ND::value > | Index |
Vector type for N-dimensional indices. More... | |
typedef ArrayRef< Element, ND::value,-RMC::value > | FullTranspose |
ArrayRef to a reverse-ordered contiguous array; the result of a call to transpose(). More... | |
typedef ArrayRef< Element, ND::value, 0 > | Transpose |
ArrayRef to a noncontiguous array; the result of a call to transpose(...). More... | |
typedef Array< Element, ND::value, RMC::value > | Shallow |
The corresponding Array type. More... | |
typedef ArrayRef< Element, ND::value, RMC::value > | Deep |
The corresponding ArrayRef type. More... | |
Public Types inherited from ndarray::ExpressionBase< Derived > | |
typedef ExpressionTraits < Derived >::Element | Element |
Data type of expression elements. More... | |
typedef ExpressionTraits < Derived >::ND | ND |
Number of dimensions (boost::mpl::int_). More... | |
typedef ExpressionTraits < Derived >::Iterator | Iterator |
Nested expression or element iterator. More... | |
typedef ExpressionTraits < Derived >::Reference | Reference |
Nested expression or element reference. More... | |
typedef ExpressionTraits < Derived >::Value | Value |
Nested expression or element value type. More... | |
typedef Vector< int, ND::value > | Index |
Vector type for N-dimensional indices. More... | |
typedef Derived | Self |
CRTP derived type. More... | |
typedef Value | value_type |
typedef Iterator | iterator |
typedef Iterator | const_iterator |
typedef Reference | reference |
typedef Reference | const_reference |
typedef Iterator | pointer |
typedef int | difference_type |
typedef int | size_type |
Public Member Functions | |
Reference | operator[] (int n) const |
Return a single subarray. More... | |
Element & | operator[] (Index const &i) const |
Return a single element from the array. More... | |
Iterator | begin () const |
Return an Iterator to the beginning of the array. More... | |
Iterator | end () const |
Return an Iterator to one past the end of the array. More... | |
Element * | getData () const |
Return a raw pointer to the first element of the array. More... | |
bool | isEmpty () const |
Return true if the array has a null data point. More... | |
Manager::Ptr | getManager () const |
Return the opaque object responsible for memory management. More... | |
template<int P> | |
int | getSize () const |
Return the size of a specific dimension. More... | |
template<int P> | |
int | getStride () const |
Return the stride in a specific dimension. More... | |
Index | getShape () const |
Return a Vector of the sizes of all dimensions. More... | |
Index | getStrides () const |
Return a Vector of the strides of all dimensions. More... | |
int | getNumElements () const |
Return the total number of elements in the array. More... | |
FullTranspose | transpose () const |
Return a view of the array with the order of the dimensions reversed. More... | |
Transpose | transpose (Index const &order) const |
Return a view of the array with the dimensions permuted. More... | |
Shallow const | shallow () const |
Return a Array view to this. More... | |
Deep const | deep () const |
Return an ArrayRef view to this. More... | |
template<typename Seq > | |
ResultOf< View< Seq > >::Type | operator[] (View< Seq > const &def) const |
Return a general view into this array (see Tutorial). More... | |
Eigen3 Interface | |
These methods return Eigen3 views to the array. Template parameters optionally control the expression type (Matrix/Array) and the compile-time dimensions. The inline implementation is included by ndarray/eigen.h. | |
template<typename XprKind , int Rows, int Cols> | |
EigenView< Element, ND::value, RMC::value, XprKind, Rows, Cols > | asEigen () const |
template<typename XprKind > | |
EigenView< Element, ND::value, RMC::value, XprKind > | asEigen () const |
template<int Rows, int Cols> | |
EigenView< Element, ND::value, RMC::value, Eigen::MatrixXpr, Rows, Cols > | asEigen () const |
EigenView< Element, ND::value, RMC::value, Eigen::MatrixXpr > | asEigen () const |
Public Member Functions inherited from ndarray::ExpressionBase< Derived > | |
Reference | operator[] (int n) const |
Return a single nested expression or element. More... | |
Reference | front () const |
Return the first nested expression or element. More... | |
Reference | back () const |
Return the last nested expression or element. More... | |
Iterator | begin () const |
Return an Iterator to the beginning of the expression. More... | |
Iterator | end () const |
Return an Iterator to one past the end of the expression. More... | |
template<int P> | |
int | getSize () const |
Return the size of a specific dimension. More... | |
Index | getShape () const |
Return a Vector of the sizes of all dimensions. More... | |
int | getNumElements () const |
Return the total number of elements in the expression. More... | |
size_type | size () const |
Return the size of the first dimension. More... | |
bool | empty () const |
Return true if the first dimension has no elements. More... | |
Protected Types | |
typedef ExpressionTraits< Derived > | Traits |
typedef Traits::Core | Core |
typedef Traits::CorePtr | CorePtr |
Protected Member Functions | |
void | operator= (ArrayBase const &other) |
ArrayBase (Element *data, CorePtr const &core) | |
Protected Member Functions inherited from ndarray::ExpressionBase< Derived > | |
Self & | getSelf () |
Self const & | getSelf () const |
Protected Attributes | |
Element * | _data |
CorePtr | _core |
Friends | |
template<typename T_ , int N_, int C_> | |
class | Array |
template<typename T_ , int N_, int C_> | |
class | ArrayRef |
template<typename T_ , int N_, int C_> | |
struct | ArrayTraits |
template<typename T_ , int N_, int C_> | |
class | detail::NestedIterator |
template<typename Derived_ > | |
class | ArrayBase |
template<typename Array_ > | |
class | detail::ArrayAccess |
CRTP implementation for Array and ArrayRef.
Implements member functions that need specialization for 1D arrays.
Definition at line 56 of file ArrayBase.h.
|
protected |
Definition at line 59 of file ArrayBase.h.
|
protected |
Definition at line 60 of file ArrayBase.h.
typedef ArrayRef<Element,ND::value,RMC::value> ndarray::ArrayBase< Derived >::Deep |
The corresponding ArrayRef type.
Definition at line 83 of file ArrayBase.h.
typedef Traits::Element ndarray::ArrayBase< Derived >::Element |
Data type of array elements.
Definition at line 63 of file ArrayBase.h.
typedef ArrayRef<Element,ND::value,-RMC::value> ndarray::ArrayBase< Derived >::FullTranspose |
ArrayRef to a reverse-ordered contiguous array; the result of a call to transpose().
Definition at line 77 of file ArrayBase.h.
typedef Vector<int,ND::value> ndarray::ArrayBase< Derived >::Index |
Vector type for N-dimensional indices.
Definition at line 75 of file ArrayBase.h.
typedef Traits::Iterator ndarray::ArrayBase< Derived >::Iterator |
Nested array or element iterator.
Definition at line 65 of file ArrayBase.h.
typedef Traits::ND ndarray::ArrayBase< Derived >::ND |
Number of dimensions (boost::mpl::int_).
Definition at line 71 of file ArrayBase.h.
typedef Traits::Reference ndarray::ArrayBase< Derived >::Reference |
Nested array or element reference.
Definition at line 67 of file ArrayBase.h.
typedef Traits::RMC ndarray::ArrayBase< Derived >::RMC |
Number of guaranteed row-major contiguous dimensions, counted from the end (boost::mpl::int_).
Definition at line 73 of file ArrayBase.h.
typedef Array<Element,ND::value,RMC::value> ndarray::ArrayBase< Derived >::Shallow |
The corresponding Array type.
Definition at line 81 of file ArrayBase.h.
|
protected |
Definition at line 58 of file ArrayBase.h.
typedef ArrayRef<Element,ND::value,0> ndarray::ArrayBase< Derived >::Transpose |
ArrayRef to a noncontiguous array; the result of a call to transpose(...).
Definition at line 79 of file ArrayBase.h.
typedef Traits::Value ndarray::ArrayBase< Derived >::Value |
Nested array or element value type.
Definition at line 69 of file ArrayBase.h.
|
inlineprotected |
Definition at line 235 of file ArrayBase.h.
EigenView<Element,ND::value,RMC::value,XprKind,Rows,Cols> ndarray::ArrayBase< Derived >::asEigen | ( | ) | const |
EigenView<Element,ND::value,RMC::value,XprKind> ndarray::ArrayBase< Derived >::asEigen | ( | ) | const |
EigenView<Element,ND::value,RMC::value,Eigen::MatrixXpr,Rows,Cols> ndarray::ArrayBase< Derived >::asEigen | ( | ) | const |
|
inline |
|
inline |
|
inline |
Return an ArrayRef view to this.
Definition at line 178 of file ArrayBase.h.
|
inline |
|
inline |
|
inline |
Return the opaque object responsible for memory management.
Definition at line 123 of file ArrayBase.h.
|
inline |
|
inline |
Return a Vector of the sizes of all dimensions.
Definition at line 136 of file ArrayBase.h.
|
inline |
Return the size of a specific dimension.
Definition at line 126 of file ArrayBase.h.
|
inline |
Return the stride in a specific dimension.
Definition at line 131 of file ArrayBase.h.
|
inline |
Return a Vector of the strides of all dimensions.
Definition at line 139 of file ArrayBase.h.
|
inline |
|
inlineprotected |
Definition at line 230 of file ArrayBase.h.
|
inline |
|
inline |
|
inline |
Return a general view into this array (see Tutorial).
Definition at line 215 of file ArrayBase.h.
|
inline |
Return a Array view to this.
Definition at line 175 of file ArrayBase.h.
|
inline |
Return a view of the array with the order of the dimensions reversed.
Definition at line 145 of file ArrayBase.h.
|
inline |
Return a view of the array with the dimensions permuted.
Definition at line 159 of file ArrayBase.h.
Definition at line 224 of file ArrayBase.h.
Definition at line 220 of file ArrayBase.h.
Definition at line 221 of file ArrayBase.h.
Definition at line 222 of file ArrayBase.h.
Definition at line 225 of file ArrayBase.h.
|
friend |
Definition at line 223 of file ArrayBase.h.
|
protected |
Definition at line 228 of file ArrayBase.h.
|
protected |
Definition at line 227 of file ArrayBase.h.