ndarray
NumPy-friendly multidimensional arrays in C++
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
ndarray::ArrayTraits< T, N, C > Struct Template Reference

Dimension-specialized traits shared by Array and ArrayRef. More...

#include <ArrayTraits.h>

Inheritance diagram for ndarray::ArrayTraits< T, N, C >:
ndarray::ExpressionTraits< Array< T, N, C > > ndarray::ExpressionTraits< ArrayRef< T, N, C > >

Public Types

typedef T Element
 
typedef boost::mpl::int_< N > ND
 
typedef boost::mpl::int_< C > RMC
 
typedef detail::NestedIterator< T, N, C > Iterator
 
typedef ArrayRef< T, N-1,(N==C)?(N-1):((C >0)?C:0)> Reference
 
typedef Array< T, N-1,(N==C)?(N-1):((C >0)?C:0)> Value
 
typedef detail::Core< N > Core
 
typedef Core::ConstPtr CorePtr
 

Static Public Member Functions

static Reference makeReference (Element *data, CorePtr const &core)
 
static Iterator makeIterator (Element *data, CorePtr const &core, Offset stride)
 
static void fill (Iterator iter, Iterator const &end, Element value)
 

Detailed Description

template<typename T, int N, int C>
struct ndarray::ArrayTraits< T, N, C >

Dimension-specialized traits shared by Array and ArrayRef.


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