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
|
A proxy class for Array with deep assignment operators. More...
#include <ArrayRef.h>
Public Types | |
typedef Super::Iterator | Iterator |
Public Types inherited from ndarray::ArrayBaseN< ArrayRef< T, N, C > > | |
typedef Super::Element | Element |
Public Types inherited from ndarray::ArrayBase< ArrayRef< T, N, C > > | |
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 | |
ArrayRef (ArrayRef const &other) | |
Non-converting copy constructor. More... | |
template<typename T_ , int C_> | |
ArrayRef (Array< T_, N, C_ > const &other) | |
Converting copy constructor. More... | |
template<typename T_ , int C_> | |
ArrayRef (ArrayRef< T_, N, C_ > const &other) | |
Converting copy constructor. More... | |
Assignment and Augmented Assignment Operators | |
ArrayRef assignment is deep, and requires that the ArrayRef being assigned to has the same shape as the input array expression. Scalar assignment sets all elements of the ArrayRef to a single value. | |
ArrayRef const & | operator= (Array< T, N, C > const &other) const |
= assignment of arrays and array expressions. More... | |
ArrayRef const & | operator= (ArrayRef const &other) const |
= assignment of arrays and array expressions. More... | |
template<typename Other > | |
ArrayRef const & | operator= (ExpressionBase< Other > const &expr) const |
= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator= (Scalar const &scalar) const |
= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator+= (ExpressionBase< Other > const &expr) const |
+= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator+= (Scalar const &scalar) const |
+= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator-= (ExpressionBase< Other > const &expr) const |
-= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator-= (Scalar const &scalar) const |
-= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator*= (ExpressionBase< Other > const &expr) const |
*= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator*= (Scalar const &scalar) const |
*= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator/= (ExpressionBase< Other > const &expr) const |
/= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator/= (Scalar const &scalar) const |
/= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator%= (ExpressionBase< Other > const &expr) const |
%= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator%= (Scalar const &scalar) const |
%= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator^= (ExpressionBase< Other > const &expr) const |
^= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator^= (Scalar const &scalar) const |
^= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator&= (ExpressionBase< Other > const &expr) const |
&= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator&= (Scalar const &scalar) const |
&= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator|= (ExpressionBase< Other > const &expr) const |
|= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator|= (Scalar const &scalar) const |
|= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator<<= (ExpressionBase< Other > const &expr) const |
<<= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator<<= (Scalar const &scalar) const |
<<= assignment of scalars. More... | |
template<typename Other > | |
ArrayRef const & | operator>>= (ExpressionBase< Other > const &expr) const |
>>= assignment of arrays and array expressions. More... | |
template<typename Scalar > | |
ArrayRef const & | operator>>= (Scalar const &scalar) const |
>>= assignment of scalars. More... | |
Public Member Functions inherited from ndarray::ArrayBase< ArrayRef< T, N, C > > | |
Reference | operator[] (int n) const |
Return a single subarray. More... | |
Element & | operator[] (Index const &i) const |
Return a single element from the array. More... | |
ResultOf< View< Seq > >::Type | operator[] (View< Seq > const &def) const |
Return a general view into this array (see Tutorial). 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... | |
int | getSize () const |
Return the size of a specific dimension. More... | |
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... | |
EigenView< Element, ND::value, RMC::value, XprKind, Rows, Cols > | asEigen () const |
EigenView< Element, ND::value, RMC::value, XprKind > | asEigen () const |
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... | |
Private Types | |
typedef ArrayBaseN< ArrayRef > | Super |
typedef Super::Core | Core |
typedef Super::CorePtr | CorePtr |
Private Member Functions | |
ArrayRef (T *data, CorePtr const &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 Derived > | |
class | ArrayBase |
template<typename Array_ > | |
class | detail::ArrayAccess |
Additional Inherited Members | |
Protected Types inherited from ndarray::ArrayBaseN< ArrayRef< T, N, C > > | |
typedef Super::Core | Core |
typedef Super::CorePtr | CorePtr |
Protected Types inherited from ndarray::ArrayBase< ArrayRef< T, N, C > > | |
typedef ExpressionTraits < ArrayRef< T, N, C > > | Traits |
typedef Traits::Core | Core |
typedef Traits::CorePtr | CorePtr |
Protected Member Functions inherited from ndarray::ArrayBase< ArrayRef< T, N, C > > | |
ArrayBase (Element *data, CorePtr const &core) | |
void | operator= (ArrayBase const &other) |
Protected Member Functions inherited from ndarray::ExpressionBase< Derived > | |
Self & | getSelf () |
Self const & | getSelf () const |
Protected Attributes inherited from ndarray::ArrayBase< ArrayRef< T, N, C > > | |
Element * | _data |
CorePtr | _core |
A proxy class for Array with deep assignment operators.
Definition at line 46 of file ArrayRef.h.
|
private |
Definition at line 48 of file ArrayRef.h.
|
private |
Definition at line 49 of file ArrayRef.h.
typedef Super::Iterator ndarray::ArrayRef< T, N, C >::Iterator |
Definition at line 51 of file ArrayRef.h.
|
private |
Definition at line 47 of file ArrayRef.h.
|
inline |
|
inlineexplicit |
Converting copy constructor.
Implicit conversion is allowed for non-const to const and for more guaranteed RMC to less guaranteed RMC (see Tutorial).
Definition at line 65 of file ArrayRef.h.
|
inline |
Converting copy constructor.
Implicit conversion is allowed for non-const to const and for more guaranteed RMC to less guaranteed RMC (see Tutorial).
Definition at line 79 of file ArrayRef.h.
|
inlineprivate |
Definition at line 389 of file ArrayRef.h.
|
inline |
%= assignment of arrays and array expressions.
Definition at line 233 of file ArrayRef.h.
|
inline |
%= assignment of scalars.
Definition at line 249 of file ArrayRef.h.
|
inline |
&= assignment of arrays and array expressions.
Definition at line 283 of file ArrayRef.h.
|
inline |
&= assignment of scalars.
Definition at line 299 of file ArrayRef.h.
|
inline |
*= assignment of arrays and array expressions.
Definition at line 183 of file ArrayRef.h.
|
inline |
*= assignment of scalars.
Definition at line 199 of file ArrayRef.h.
|
inline |
+= assignment of arrays and array expressions.
Definition at line 133 of file ArrayRef.h.
|
inline |
+= assignment of scalars.
Definition at line 149 of file ArrayRef.h.
|
inline |
-= assignment of arrays and array expressions.
Definition at line 158 of file ArrayRef.h.
|
inline |
-= assignment of scalars.
Definition at line 174 of file ArrayRef.h.
|
inline |
/= assignment of arrays and array expressions.
Definition at line 208 of file ArrayRef.h.
|
inline |
/= assignment of scalars.
Definition at line 224 of file ArrayRef.h.
|
inline |
<<= assignment of arrays and array expressions.
Definition at line 333 of file ArrayRef.h.
|
inline |
<<= assignment of scalars.
Definition at line 349 of file ArrayRef.h.
|
inline |
= assignment of arrays and array expressions.
Definition at line 95 of file ArrayRef.h.
|
inline |
= assignment of arrays and array expressions.
Definition at line 101 of file ArrayRef.h.
|
inline |
= assignment of arrays and array expressions.
Definition at line 111 of file ArrayRef.h.
|
inline |
= assignment of scalars.
Definition at line 125 of file ArrayRef.h.
|
inline |
>>= assignment of arrays and array expressions.
Definition at line 358 of file ArrayRef.h.
|
inline |
>>= assignment of scalars.
Definition at line 374 of file ArrayRef.h.
|
inline |
^= assignment of arrays and array expressions.
Definition at line 258 of file ArrayRef.h.
|
inline |
^= assignment of scalars.
Definition at line 274 of file ArrayRef.h.
|
inline |
|= assignment of arrays and array expressions.
Definition at line 308 of file ArrayRef.h.
|
inline |
|= assignment of scalars.
Definition at line 324 of file ArrayRef.h.
|
friend |
Definition at line 383 of file ArrayRef.h.
Definition at line 382 of file ArrayRef.h.
Definition at line 385 of file ArrayRef.h.
|
friend |
Definition at line 384 of file ArrayRef.h.
|
friend |
Definition at line 386 of file ArrayRef.h.