ndarray
NumPy-friendly multidimensional arrays in C++
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
ndarray::detail::UnaryOpExpression< Operand, UnaryFunction, N > Class Template Reference
Inheritance diagram for ndarray::detail::UnaryOpExpression< Operand, UnaryFunction, N >:
ndarray::ExpressionBase< UnaryOpExpression< Operand, UnaryFunction, N > >

Public Types

typedef ExpressionTraits< Self >::Element Element
 
typedef ExpressionTraits< Self >::ND ND
 
typedef ExpressionTraits< Self >::Iterator Iterator
 
typedef ExpressionTraits< Self >::Value Value
 
typedef ExpressionTraits< Self >::Reference Reference
 
typedef Vector< Size, N > Index
 
- Public Types inherited from ndarray::ExpressionBase< UnaryOpExpression< Operand, UnaryFunction, N > >
typedef ExpressionTraits< UnaryOpExpression< Operand, UnaryFunction, N > >::Element Element
 Data type of expression elements.
 
typedef ExpressionTraits< UnaryOpExpression< Operand, UnaryFunction, N > >::ND ND
 Number of dimensions (boost::mpl::int_).
 
typedef ExpressionTraits< UnaryOpExpression< Operand, UnaryFunction, N > >::Iterator Iterator
 Nested expression or element iterator.
 
typedef ExpressionTraits< UnaryOpExpression< Operand, UnaryFunction, N > >::Reference Reference
 Nested expression or element reference.
 
typedef ExpressionTraits< UnaryOpExpression< Operand, UnaryFunction, N > >::Value Value
 Nested expression or element value type.
 
typedef Vector< Size, ND::value > Index
 Vector type for N-dimensional indices.
 
typedef UnaryOpExpression< Operand, UnaryFunction, N > Self
 CRTP derived type.
 
typedef Value value_type
 
typedef Iterator iterator
 
typedef Iterator const_iterator
 
typedef Reference reference
 
typedef Reference const_reference
 
typedef Iterator pointer
 
typedef Offset difference_type
 
typedef Size size_type
 

Public Member Functions

 UnaryOpExpression (Operand const &operand, UnaryFunction const &functor)
 
Reference operator[] (Size n) const
 
Iterator begin () const
 
Iterator end () const
 
template<int P>
Size getSize () const
 
Index getShape () const
 
- Public Member Functions inherited from ndarray::ExpressionBase< UnaryOpExpression< Operand, UnaryFunction, N > >
Reference operator[] (Size n) const
 Return a single nested expression or element.
 
Reference front () const
 Return the first nested expression or element.
 
Reference back () const
 Return the last nested expression or element.
 
Iterator begin () const
 Return an Iterator to the beginning of the expression.
 
Iterator end () const
 Return an Iterator to one past the end of the expression.
 
Size getSize () const
 Return the size of a specific dimension.
 
Index getShape () const
 Return a Vector of the sizes of all dimensions.
 
Size getNumElements () const
 Return the total number of elements in the expression.
 
size_type size () const
 Return the size of the first dimension.
 
bool empty () const
 Return true if the first dimension has no elements.
 

Public Attributes

Operand _operand
 
UnaryFunction _functor
 

Additional Inherited Members

- Protected Member Functions inherited from ndarray::ExpressionBase< UnaryOpExpression< Operand, UnaryFunction, N > >
SelfgetSelf ()
 
Self const & getSelf () const
 

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