github ↗
docs menu

Module Quad.Box

Boxes of integration, one per lane.

#type ('b, 'd) t

The type for boxes of dtype 'b.

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

v lo hi is the box with corners lo and hi, which broadcast together to lanes @ [d]: a point's coordinates are the last axis. An axis with hi < lo flips the integral's sign, as Range.v.

Raises Invalid_argument if lo and hi do not broadcast or are scalars.