19#ifndef _FUNCTIONUTILS_NDSAMPLERFROMGRID_H
20#define _FUNCTIONUTILS_NDSAMPLERFROMGRID_H
29template <
typename Seq>
34 template <
typename...
Axes>
39 template <
typename...
Axes>
55template <
typename...
Axes>
Provides information related with an axis of a GridContainer.
Representation of a multi-dimensional grid which contains axis information.
std::unique_ptr< NdSampler< Axes... > > createSamplerFromGrid(const GridContainer::GridContainer< std::vector< double >, Axes... > &grid)
std::array< std::vector< double >, N > Coordinates
Used to pass the grid coordinates to interpn. Internally will make a copy of the required values.
std::vector< std::size_t > unravel_index(std::size_t index, const std::vector< std::size_t > &shape)
std::unique_ptr< T > make_unique(Args &&... args)
Constructs an object of type T and wraps it in a std::unique_ptr using args as the parameter list for...
typename _index_sequence_helper< N >::type _make_index_sequence