github ↗
docs menu

Module Quad.Range

Ranges of integration, one per element.

#type ('b, 'd) t

The type for ranges of dtype 'b.

#val v : (float, 'b, 'd) Nx.t -> (float, 'b, 'd) Nx.t -> ('b, 'd) t

v a b is [a, b], a and b broadcast together. An integral over [a, b] with b < a is minus the integral over [b, a].

#val from : (float, 'b, 'd) Nx.t -> ('b, 'd) t

from a is the half-line from a to +∞, at unit scale: a rule's nodes spread over distances near 1 from a. Scale the variable so the integrand's width is near 1.

#val line : (float, 'b, 'd) Nx.t -> ('b, 'd) t

line c is the whole line, around c at unit scale.