vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
vspline::yield_type< crd_t, data_t, _vsize, enable > Struct Template Reference

at times we require reading access to an nD array at given coordinates, as a functor which, receiving the coordinates, produces the values from the array. In the scalar case, this is trivial: if the coordinate is integral, we have a simple indexed access, and if it is real, we can use std::round to produce a nearby discrete coordinate. But for the vectorized case we need a bit more effort: We need to translate the access with a vector of coordinates into a gather operation. We start out with a generalized template class 'yield-type': More...

#include <unary_functor.h>

Detailed Description

template<typename crd_t, typename data_t, size_t _vsize = vspline::vector_traits < data_t > :: size, class enable = void>
struct vspline::yield_type< crd_t, data_t, _vsize, enable >

at times we require reading access to an nD array at given coordinates, as a functor which, receiving the coordinates, produces the values from the array. In the scalar case, this is trivial: if the coordinate is integral, we have a simple indexed access, and if it is real, we can use std::round to produce a nearby discrete coordinate. But for the vectorized case we need a bit more effort: We need to translate the access with a vector of coordinates into a gather operation. We start out with a generalized template class 'yield-type':

Definition at line 1057 of file unary_functor.h.


The documentation for this struct was generated from the following file: