pub fn evaluate_compiled(
cg: &CompiledGraph,
flat: &HashMap<String, f64>,
x: &[f64],
) -> Result<Vec<f64>, CoreError>Expand description
Evaluate the model sum at each x-point.
For each point, sums model.eval(coord, ¶ms) across all nodes, where
coord is the n_dims-length coordinate slice for that point. For 1-D
models coord is a single-element slice (x[i..i+1]); for n-D models it is
the full strided coordinate x[i*d..(i+1)*d].
§Errors
Returns CoreError::Eval if: flat is missing a required
"node_id.param_name" entry for some node (GraphError::MissingParamKey);
x.len() is not an exact multiple of the graph’s coordinate
dimensionality (GraphError::XBufferStrideMismatch); the graph’s nodes
disagree on n_dims (GraphError::DimensionalityMismatch); or, when
multi-dataset scoping is active, a node’s dataset_index is out of range
(GraphError::DatasetIndexOutOfRange).