MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_float_array_set

Function lean_float_array_set

src/sarray/float.rs:65–76  ·  view source on GitHub ↗
(a: lean_obj_arg, i: b_lean_obj_arg, v: f64)

Source from the content-addressed store, hash-verified

63
64#[inline]
65pub unsafe fn lean_float_array_set(a: lean_obj_arg, i: b_lean_obj_arg, v: f64) -> *mut lean_object {
66 if !lean_is_scalar(i) {
67 a
68 } else {
69 let i = lean_unbox(i);
70 if i >= lean_sarray_size(a) {
71 a
72 } else {
73 lean_float_array_uset(a, i, v)
74 }
75 }
76}
77
78#[inline(always)]
79pub unsafe fn lean_float_array_fset(

Callers

nothing calls this directly

Calls 4

lean_is_scalarFunction · 0.85
lean_unboxFunction · 0.85
lean_sarray_sizeFunction · 0.85
lean_float_array_usetFunction · 0.85

Tested by

no test coverage detected