Skip to main content

Crate sim_lib_numbers_func

Crate sim_lib_numbers_func 

Source
Expand description

Function number domain: callable function values built over CAS or native bodies, with fn, call, and grad operations for the Func domain.

Structs§

Func
A callable function value in the Func number domain: its bound variables plus an optional symbolic (CAS) body and/or native body.
FuncMetadata
Out-of-band annotations attached to a Func value.
FuncNumbersLib
Library that installs the Func number domain: its domain object, value class and shape, the fn/call/grad callables, and the promotion rules that lift scalar number values into constant functions.

Functions§

call_symbol
Returns the symbol bound to the call apply-a-function callable.
fn_symbol
Returns the symbol bound to the fn function-builder callable.
func_class_symbol
Returns the class symbol for the constructible Func value class (numbers/Func).
func_domain_symbol
Returns the domain symbol that names the Func number domain (numbers/func).
grad_symbol
Returns the symbol bound to the grad gradient-of-a-function callable.

Type Aliases§

NativeFn
A native (Rust-backed) function body: a closure invoked with the runtime context and the evaluated argument values, used when a Func has no CAS body.