1 #ifndef MF_NDARRAY_FILTER_H_
2 #define MF_NDARRAY_FILTER_H_
9 template<std::
size_t Dim,
typename Elem,
typename Kernel_elem>
20 template<std::
size_t Dim,
typename Elem,
typename Kernel_elem>
33 template<std::
size_t Dim,
typename In_elem,
typename Out_elem,
typename Kernel_elem,
typename Function>
Placement of a kernel on an ndarray_view.
Definition: ndarray_filter.h:10
ndarray_view< Dim, Elem > view_section
Section of the view covered by kernel.
Definition: ndarray_filter.h:11
void apply_kernel(Function &&func, const ndarray_view< Dim, In_elem > &in_view, const ndarray_view< Dim, Out_elem > &out_view, const ndarray_view< Dim, Kernel_elem > kernel)
Place kernel over all elements in in_view, and call func to modify corresponding out_view element...
Definition: ndarray_filter.tcc:39
ndarray_view< Dim, Kernel_elem > kernel_section
Section of the kernel which covers view (may be truncated).
Definition: ndarray_filter.h:12
Vector of n-dimensional coordinates.
Definition: ndcoord.h:18
ndptrdiff< Dim > absolute_position
Coordinates of kernel center in full view.
Definition: ndarray_filter.h:14
ndptrdiff< Dim > section_position
Coordinates of kernel center in view_section and kernel_section.
Definition: ndarray_filter.h:13
kernel_placement< Dim, Elem, Kernel_elem > place_kernel_at(const ndarray_view< Dim, Elem > &view, const ndarray_view< Dim, Kernel_elem > kernel, const ndptrdiff< Dim > &pos)
Return kernel_placement object for placement of kernel kernel over view centered at pos...
Definition: ndarray_filter.tcc:7