clone! | clone! name, [name, ...] | Copy named variables without moving them. |
concat! | concat! a, b, ... | Join vectors end to end. |
len! | len! name | The length of a named variable, as a static scalar. |
slice! | slice! vector, start, [len] | A contiguous sub-vector of a vector. |
slice_ref! | slice_ref! name, start, len | A sub-vector of a named variable, without moving the variable. |
split_at! | split_at! vector, index | Split a vector into the elements before and from an index, as a tuple. |
chunks_flat_map! | chunks_flat_map! vector, chunk_len[, chunk[, i]] { ... } | Map a block over consecutive chunks of a vector and concatenate the results. |
chunks_sum_map! | chunks_sum_map! vector, chunk_len[, chunk[, i]] [{ ... }] | Sum consecutive chunks of a vector element-wise, optionally mapping each chunk through a block. |
flat_map! | flat_map! vector, v[, i] { ... } | Map a block over the elements of a vector and concatenate the results. |
loop! | loop! count[, i] { ... } | Run a block a static number of times. |
loop_flat_map! | loop_flat_map! count[, i] { ... } | Concatenate the values a block returns over a static number of iterations. |
loop_map_sum! | loop_map_sum! count[, i] { ... } | Sum the values a block returns over a static number of iterations. |
map_sum! | map_sum! vector[, v[, i]] [{ ... }] | Sum the elements of a vector, or the values a block returns for each element. |
shadow_loop! | shadow_loop! count[, i] { ... } | Run a block a static number of times in the enclosing scope. |
div_ceil! | div_ceil! lhs, rhs | Static element-wise integer division rounding up. |
div_exact! | div_exact! lhs, rhs | Static element-wise integer division that fails unless the divisor divides evenly. |
div_floor! | div_floor! lhs, rhs | Element-wise integer division rounding down, static or as an unconstrained witness hint. |
field_bit_width! | field_bit_width! | The number of bits needed to represent any element of the field, as a static scalar. |
log2_ceil! | log2_ceil! n | Static base 2 logarithm of a scalar, rounded up. |
log2_exact! | log2_exact! n | Static base 2 logarithm of a scalar, meant for powers of two. |
min! | min! lhs, rhs | Static element-wise minimum of canonical integer values. |
modulo! | modulo! lhs, rhs | Element-wise integer remainder, static or as an unconstrained witness hint. |
root_of_unity! | root_of_unity! n [, count] | A static primitive n-th root of unity, or its first powers and inverse powers. |
sqrt! | sqrt! v | Element-wise field square root, computed statically or constrained as a witness. |
sqrt_ceil! | sqrt_ceil! n | Static integer square root of a scalar, rounded up. |
assert_eq! | assert_eq! lhs, rhs[, "message"] | Fail compilation unless two static vectors are equal. |
assert_lt! | assert_lt! lhs, rhs[, "message"] | Fail compilation unless each element of a static vector is less than the matching element of another. |
assert_lte! | assert_lte! lhs, rhs | Fail compilation unless each element of a static vector is at most the matching element of another. |
assert_ne! | assert_ne! lhs, rhs[, "message"] | Fail compilation if two static vectors are equal at any index. |