pub(crate) fn pushforward<const A: usize, T: Send>(
tangents: [&[Complex]; A],
size: usize,
message: &str,
parallel: Parallel,
f: impl Fn(usize, [Complex; A]) -> Result<T> + Sync + Send,
) -> Result<Vec<T>>Expand description
Apply one input direction to an elementwise evaluation. Each tangent is scalar
or has one finite entry per output; f receives the direction at that output.