Skip to main content

Module fixed

Module fixed 

Source
Expand description

Number types whose value is fixed at compile time.

A matrix provider often stores coefficients that can only take one or two values: the incidence matrix of a network is nothing but 1, -1 and 0. Storing such a coefficient in a rational number wastes both space and time, so these types store it in no space at all and let Absorb apply it to a wide accumulator directly.

They live in their own module because One and Zero would otherwise shadow the num_traits traits of the same name, which are in scope in most code that uses this crate.

Structs§

One
One
Zero
Zero

Enums§

Binary
Binary
SignedOne
SignedOne