11 #ifndef CUBBYFLOW_ARRAY_UTILS_HPP 12 #define CUBBYFLOW_ARRAY_UTILS_HPP 18 template <
typename T,
size_t N>
19 void Fill(ArrayView<T, N> a,
const Vector<size_t, N>& begin,
20 const Vector<size_t, N>& end,
const T& val);
22 template <
typename T,
size_t N>
23 void Fill(ArrayView<T, N> a,
const T& val);
26 void Fill(ArrayView<T, 1> a,
size_t begin,
size_t end,
const T& val);
28 template <
typename T,
typename U,
size_t N>
29 void Copy(ArrayView<T, N> src,
const Vector<size_t, N>& begin,
30 const Vector<size_t, N>& end, ArrayView<U, N> dst);
32 template <
typename T,
typename U,
size_t N>
33 void Copy(ArrayView<T, N> src, ArrayView<U, N> dst);
35 template <
typename T,
typename U>
36 void Copy(ArrayView<T, 1> src,
size_t begin,
size_t end, ArrayView<U, 1> dst);
52 template <
typename T,
typename U>
54 unsigned int numberOfIterations, ArrayView2<U> output);
70 template <
typename T,
typename U>
72 unsigned int numberOfIterations, ArrayView3<U> output);
void ExtrapolateToRegion(ArrayView2< T > input, ArrayView2< char > valid, unsigned int numberOfIterations, ArrayView2< U > output)
Extrapolates 2-D input data from 'valid' (1) to 'invalid' (0) region.
Definition: ArrayUtils-Impl.hpp:57
void Copy(ArrayView< T, N > src, const Vector< size_t, N > &begin, const Vector< size_t, N > &end, ArrayView< U, N > dst)
Definition: ArrayUtils-Impl.hpp:38
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