A multidimensional view onto an array.
More...
#include <multi_array_view.hpp>
|
| multi_array_view (T *data_, std::vector< std::size_t > shape_) |
| Constructs a new view for a given array using a given shape. More...
|
|
template<typename... Indices, typename Enabler = typename std::enable_if< detail::all_integral<Indices...>::value>::type> |
const value_type & | operator() (Indices...indices) const |
| Accesses a specified element. More...
|
|
template<typename... Indices, typename Enabler = typename std::enable_if< detail::all_integral<Indices...>::value>::type> |
value_type & | operator() (Indices...indices) |
| Accesses a specified element. More...
|
|
template<typename... Args, typename Enabler = typename std::enable_if< !detail::all_integral<Args...>::value>::type> |
echelon::hdf5::array_slice< T > | operator() (Args...args) |
| Slice the array. More...
|
|
const value_type * | data () const |
| Direct access to the underlying array. More...
|
|
value_type * | data () |
| Direct access to the underlying array. More...
|
|
const std::vector< std::size_t > & | shape () const |
| The shape of the array.
|
|
template<typename T>
class echelon::multi_array_view< T >
A multidimensional view onto an array.
- Template Parameters
-
T | the value type of the array |
Direct access to the underlying array.
- Returns
- a pointer to the underlying array.
Direct access to the underlying array.
- Returns
- a pointer to the underlying array.
template<typename T >
template<typename... Indices, typename Enabler = typename std::enable_if< detail::all_integral<Indices...>::value>::type>
template<typename T >
template<typename... Indices, typename Enabler = typename std::enable_if< detail::all_integral<Indices...>::value>::type>
template<typename T >
template<typename... Args, typename Enabler = typename std::enable_if< !detail::all_integral<Args...>::value>::type>
Slice the array.
- Template Parameters
-
Args | types of the index range specifiers |
- Parameters
-
args | index range specifiers |
- Returns
- the specified slice.
The documentation for this class was generated from the following file: