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
Classes | Static Public Member Functions | List of all members
ndarray::detail::IndexTraits< ndarray::index::Scalar > Struct Template Reference

#include <ViewBuilder.h>

Classes

struct  Append
 
struct  TransformCoreResult
 Metafunction for the result type of transform(). More...
 

Static Public Member Functions

template<typename T , int M, int N>
static CoreTransformer< T, M-1, N > transformCore (ndarray::index::Scalar const &index, CoreTransformer< T, M, N > &t)
 Apply a scalar dimension index. More...
 

Detailed Description

template<>
struct ndarray::detail::IndexTraits< ndarray::index::Scalar >

Definition at line 174 of file ViewBuilder.h.

Member Function Documentation

template<typename T , int M, int N>
static CoreTransformer<T,M-1,N> ndarray::detail::IndexTraits< ndarray::index::Scalar >::transformCore ( ndarray::index::Scalar const &  index,
CoreTransformer< T, M, N > &  t 
)
inlinestatic

Apply a scalar dimension index.

Definition at line 192 of file ViewBuilder.h.

194  {
195  NDARRAY_ASSERT(index.n >= 0);
196  NDARRAY_ASSERT(index.n < t._input->getSize());
197  t._data += index.n * t._input->getStride();
198  return t;
199  }
#define NDARRAY_ASSERT(ARG)
Definition: ndarray_fwd.h:51

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