Skip to content

Andre/float support#71

Open
gallantandre wants to merge 5 commits into
mainfrom
andre/float-support
Open

Andre/float support#71
gallantandre wants to merge 5 commits into
mainfrom
andre/float-support

Conversation

@gallantandre

Copy link
Copy Markdown
Member

add float support. We have always had float support for blast::real, but NLopt only took doubles. Now, if we use Blast's SQP solver, we can use floats.

Surprisingly, it is not faster at all. Maybe even a little slower. I will investigate further, but for now at least the support is there.

gallantandre and others added 4 commits June 15, 2026 07:03
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
NLopt is double-only, so float forces the in-house SQP (guarded so you can't
mix them). sqp.hpp + callbacks ported to real, precision-aware tolerances
(old 1e-9 consts were below float eps). Tests green both ways. Benches: float
wins the SIMD kernels ~3x, not the solve — that's scalar solver linear algebra.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant