Function uitsl::linear_encode

Function Documentation

size_t uitsl::linear_encode(const Point &p, const Dims &dims)

This function maps a point in a finite N-dimensional space to 1-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