itt-ustutt / num-dual

Generalized (hyper-) dual numbers in rust
Other
53 stars 6 forks source link

Performance optimizations for `StaticVec` #45

Closed prehner closed 2 years ago

prehner commented 2 years ago

The newly stabilized array::from_fn API can be used to avoid unnecessary allocations in the methods of StaticVec.

prehner commented 2 years ago

For some reason this appears to have the exact opposite effect on computation times.