Macro peroxide::single_function

source ·
macro_rules! single_function {
    ($problem:expr, $x:expr) => { ... };
}
Expand description

Macro for single function

§Description

For I=1, O=1, it is bother to write below code.

let fx = problem.function([x])?[0];

This macro solve this problem as follows.

let fx = single_function!(problem, x);