Skip to main content

emit_function

Function emit_function 

Source
pub fn emit_function(name: &str, f: &Function) -> Result<String, Error>
Expand description

Generates a Rust function name that computes f: arguments are the inputs of f (scalars by value, arrays as &[T; N]), and the result is the tuple of its outputs.

ยงErrors

Returns an error for element types or operations that cannot be generated (complex numbers, arrays of more than 2^20 elements).