Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Marks a float array as linear, which is a no-op logically.
At runtime the array is first made unique, copying it if the reference is not already unique, and
then marked. If the environment variable LEAN_ABORT_ON_NONLINEAR is set, every non-linear use
from that point on causes a panic instead of a silent copy.
To debug where the non-linearity is coming from you can set a breakpoint on lean_internal_panic.
Instances For
Returns es, propagating the linearity marker of ds onto it. This is a no-op logically.
See also FloatArray.markLinear.
Instances For
We claim this unsafe implementation is correct because an array cannot have more than usizeSz elements in our runtime.
This is similar to the Array version.
Instances For
Reference implementation for forIn
Instances For
See comment at forInUnsafe
Instances For
Instances For
Converts a list of floats into a FloatArray.