koblas

Scratch

Reusable temporary arrays a Level 2 or 3 routine borrows for alias snapshots, packed panels and sparse scratch.

Passed to one call at a time, so it must not be shared by concurrent calls; nested calls may share it. A call given none allocates its own temporary storage. Buffers never retain an operand and are returned even if arithmetic throws.

Reuse is by exact length, so repeated shapes reuse temporary arrays without exposing stale tail entries. Retention keeps a bounded number of recently returned lengths, so changing shapes cannot grow the pool indefinitely. Active loans remain valid through nested calls.

Constructors

Scratch

constructor()(source)