moonlander_gp

Module num

Source
Expand description

Numeric helper functions

Functions§

  • A max() function that only requires a partial ordering.
  • A min() function that only requires a partial ordering.
  • Square a number
  • A sum() function to use on an iterator, because Iterator.sum() is unstable.
  • Crop a value to an N-sized torus

Type Aliases§

  • The general number type used by all simulations