Expand description
Numerical support without physics: complex helpers, forward-mode jets, broadcasting, fallible allocation and the parallel policy. treams-rs extension.
ModulesΒ§
- broadcast π
- Elementwise evaluation over broadcast inputs, and its pullback. treams-rs extension.
- jet π
- First-order forward-mode jets: a value with its derivatives along
Ndirections, propagated through numerical kernels by local chain rules.N = 0compiles out all derivative storage and arithmetic in forward evaluations. treams-rs extension. - memory π
- Allocations that return
Error::OutOfMemorywhen the system refuses them, for outputs and workspaces that grow with the problem. treams-rs extension. - parallel π
- Serial or Rayon-parallel evaluation of independent items. treams-rs extension.
ConstantsΒ§
- EULER π
- The Euler-Mascheroni constant.
FunctionsΒ§
- complex_
sqrt π - The principal square root of
z, equal toz.sqrt()up to rounding. - finite π
- Whether both parts of
zare finite. - label_
bits π - The bits of a real mode label, such as an axial wavenumber, as an exact hash key. Adding zero turns -0.0 into +0.0, so the two zeros, which compare equal, share a key.
- parity π
(-1)^nas a float, for the sign factors of degrees and orders.- ratio π
numerator / denominatorwithout overflow or underflow in the denominatorβs square.