#include <Array.h>
|
| Strides (Shape s) |
|
int | operator[] (size_t idx) const noexcept |
|
template<typename Seq , typename... Ts> |
constexpr size_t | offset (Seq, Ts... x) const noexcept |
|
Definition at line 40 of file Array.h.
◆ Strides()
ndarray::Strides::Strides |
( |
Shape |
s | ) |
|
|
inlineexplicit |
Definition at line 42 of file Array.h.
42: _strides{} { fillStrides(s); }
◆ offset()
template<typename Seq , typename... Ts>
constexpr size_t ndarray::Strides::offset |
( |
Seq |
, |
|
|
Ts... |
x |
|
) |
| const |
|
inlineconstexprnoexcept |
Definition at line 67 of file Array.h.
68 {
69
70 return _calc_offset<Seq, Ts...>::get(_strides, x...);
71 }
◆ operator[]()
int ndarray::Strides::operator[] |
( |
size_t |
idx | ) |
const |
|
inlinenoexcept |
Definition at line 44 of file Array.h.
44{ return _strides[idx]; }
The documentation for this struct was generated from the following file:
- runtime/libs/ndarray/include/ndarray/Array.h