ndarray
NumPy-friendly multidimensional arrays in C++
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
ndarray::View< Seq_ > Struct Template Reference

A template meta-sequence that defines an arbitrary view into an unspecified array. More...

#include <views.h>

Public Types

typedef Seq_ Sequence
 A boost::fusion sequence type.
 
typedef View< typename boost::fusion::result_of::push_back< Sequence const, index::Full >::type > Full
 The View that results from chaining an full dimension index () to this.
 
typedef View< typename boost::fusion::result_of::push_back< Sequence const, index::Range >::type > Range
 The View that results from chaining a range (start,stop) to this.
 
typedef View< typename boost::fusion::result_of::push_back< Sequence const, index::Slice >::type > Slice
 The View that results from chaining a slice (start,stop,step) to this.
 
typedef View< typename boost::fusion::result_of::push_back< Sequence const, index::Scalar >::type > Scalar
 The View that results from chaining a scalar (n) to this.
 

Public Member Functions

 View (Sequence seq)
 
template<typename OtherSequence >
 View (OtherSequence const &other)
 
template<typename OtherSequence >
 View (View< OtherSequence > const &other)
 
Full operator() () const
 Chain the full next dimension to this.
 
Range operator() (Size start, Size stop) const
 Chain a contiguous range of the next dimension to this.
 
Slice operator() (Size start, Size stop, Offset step) const
 Chain a noncontiguous slice of the next dimension to this.
 
Scalar operator() (Size n) const
 Chain a single element of the next dimension to this.
 

Public Attributes

Sequence _seq
 A boost::fusion sequence of index objects.
 

Detailed Description

template<typename Seq_ = boost::fusion::vector<>>
struct ndarray::View< Seq_ >

A template meta-sequence that defines an arbitrary view into an unspecified array.

A View is constructed from a call to the global view() function and subsequent chained calls to operator().


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