MCPcopy Create free account
hub / github.com/cvanaret/Uno / EvaluationCache

Method EvaluationCache

uno/optimization/EvaluationCache.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5namespace uno {
6 EvaluationCache::EvaluationCache(const Model& model):
7 number_jacobian_nonzeros(model.number_jacobian_nonzeros()),
8 jacobian_sparsity(this->number_jacobian_nonzeros),
9 // pass (a const reference of) the Jacobian sparsity to both evaluations
10 current_evaluations(model, &this->jacobian_sparsity),
11 trial_evaluations(model, &this->jacobian_sparsity) {
12 model.compute_jacobian_sparsity(this->jacobian_sparsity.row_indices.data(), this->jacobian_sparsity.column_indices.data(),
13 0, 0, Indexing::C_indexing, MatrixOrder::ROW_MAJOR); // TODO
14 }
15} // namespace

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45

Tested by

no test coverage detected