| 305 | } |
| 306 | |
| 307 | size_t PythonModel::number_jacobian_nonzeros() const { |
| 308 | return static_cast<size_t>(this->user_model.number_jacobian_nonzeros); |
| 309 | } |
| 310 | |
| 311 | size_t PythonModel::number_hessian_nonzeros() const { |
| 312 | if (this->user_model.number_hessian_nonzeros.has_value()) { |