fn eval_kronecker_with_fn( a: &RValue, b: &RValue, fun: fn(f64, f64) -> f64, ) -> Result<RValue, RError>