Module exr::math

source ·
Expand description

Simple math utilities.

Structs§

  • Simple two-dimensional vector of any numerical type. Supports only few mathematical operations as this is used mainly as data struct.

Enums§

Functions§

  • ceil_log_2 🔒
    Computes ceil(log(x)/log(2)). Returns 0 where argument is 0.
  • Computes floor(log(x)/log(2)). Returns 0 where argument is 0.