gbionics / gbionics/osqp-eigen

Dynamic allocations

Open
#6 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
503
Forks
133
PR merge metrics
No merged PRs in 30d

Description

I'd like to integrate this library in a Xenomai setup but I'm afraid of dynamic allocations. I see some [push_back](https://github.com/GiulioRomualdi/osqp-eigen/blob/cd18d43fb0698438f7e9e9fc38d0640e498787b3/include/OptimizerSolver.tpp#L243) in the code.
I was wondering If we could take advantage of the `reserve` methods for `std::vector<>` and [eigen sparse matrices](https://eigen.tuxfamily.org/dox/group__SparseQuickRefPage.html) toa void any memory allocation between solver updates.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.