11 #ifndef CUBBYFLOW_ARRAY_VIEW_IMPL_HPP 12 #define CUBBYFLOW_ARRAY_VIEW_IMPL_HPP 18 template <
typename T,
size_t N>
24 template <
typename T,
size_t N>
27 Base::SetPtrAndSize(ptr, size);
30 template <
typename T,
size_t N>
38 template <
typename T,
size_t N>
44 template <
typename T,
size_t N>
50 template <
typename T,
size_t N>
53 *
this = std::move(other);
56 template <
typename T,
size_t N>
64 template <
typename T,
size_t N>
67 Base::SetPtrAndSize(other.data(), other.Size());
73 template <
typename T,
size_t N>
76 Base::SetPtrAndSize(other.
data(), other.
Size());
79 template <
typename T,
size_t N>
82 Base::SetPtrAndSize(const_cast<T*>(other.
data()), other.
Size());
85 template <
typename T,
size_t N>
89 [&](
auto... idx) { this->At(idx...) = val; });
92 template <
typename T,
size_t N>
98 template <
typename T,
size_t N>
105 template <
typename T,
size_t N>
114 template <
typename T,
size_t N>
120 template <
typename T,
size_t N>
126 template <
typename T,
size_t N>
132 template <
typename T,
size_t N>
135 *
this = std::move(other);
138 template <
typename T,
size_t N>
147 template <
typename T,
size_t N>
156 template <
typename T,
size_t N>
166 template <
typename T,
size_t N>
172 template <
typename T,
size_t N>
178 template <
typename T,
size_t N>
Definition: ArrayView.hpp:60
ArrayView()
Definition: ArrayView-Impl.hpp:19
void Set(Array< T, N > &other)
Definition: ArrayView-Impl.hpp:74
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
void Fill(ArrayView< T, N > a, const Vector< size_t, N > &begin, const Vector< size_t, N > &end, const T &val)
Definition: ArrayUtils-Impl.hpp:19
Definition: Array-Impl.hpp:19
ArrayView & operator=(const ArrayView &other)
Definition: ArrayView-Impl.hpp:57
Generic N-dimensional array class interface.
Definition: Array.hpp:32
Pointer data()
Definition: ArrayBase-Impl.hpp:39
void ForEachIndex(const Vector< IndexType, N > &begin, const Vector< IndexType, N > &end, const Func &func)
Definition: IterationUtils-Impl.hpp:51
const Vector< size_t, N > & Size() const
Definition: ArrayBase-Impl.hpp:51
void SetPtrAndSize(Pointer ptr, size_t ni, Args... args)
Definition: ArrayBase-Impl.hpp:250