Function uitsl::linear_decode

Function Documentation

Point uitsl::linear_decode(size_t r, const Dims &dims)

This function maps a point in a 1-dimensional space to a finite N-dimensional space The cardinality of the dimensions of the space need not be equal

Return

1-dimensional mapping

Parameters
  • p: point to map

  • dims: dimensions of space