pub fn jacobian_compiled_indexed(
cg: &CompiledGraph,
node_params: &[Vec<f64>],
x: &[f64],
) -> Result<DMatrix<f64>, CoreError>Expand description
Compute the analytical Jacobian using pre-computed per-node param buffers.
Hot-path companion to jacobian_compiled: the caller maintains
node_params[i] and passes it directly, bypassing all HashMap lookups.
§Errors
Returns CoreError::Eval if: 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).