| 4 | |
| 5 | namespace 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 |
nothing calls this directly
no test coverage detected