25 #ifndef UQ_MULTI_DIMENSIONAL_INDEXING_H
26 #define UQ_MULTI_DIMENSIONAL_INDEXING_H
48 static unsigned int coordToGlobal(
const std::vector<unsigned int>& coord_indices,
49 const std::vector<unsigned int>& n_points );
55 const std::vector<unsigned int>& n_points,
56 std::vector<unsigned int>& coord_indices );
71 #endif // UQ_MULTI_DIMENSIONAL_INDEXING_H
MultiDimensionalIndexing()
~MultiDimensionalIndexing()
static void globalToCoord(unsigned int global, const std::vector< unsigned int > &n_points, std::vector< unsigned int > &coord_indices)
Inverse of coordToGlobal map.
static unsigned int coordToGlobal(const std::vector< unsigned int > &coord_indices, const std::vector< unsigned int > &n_points)
Map coordinate indices to a singal global index.
static unsigned int compute_npoints_factor(const std::vector< unsigned int > &n_points, unsigned int term)
Helper function.