bmad-sim / NonlinearNormalForm.jl

Nonlinear normal form analysis using truncated power series
https://bmad-sim.github.io/NonlinearNormalForm.jl/
GNU General Public License v3.0
1 stars 0 forks source link

Try StaticArrays in map #38

Open mattsignorelli opened 2 months ago

mattsignorelli commented 2 months ago

With the most recent changes #37 , this won't be too much work. It would be worth seeing if there are speedups when using static arrays in the maps , since internally all operations are in-place .

The new quaternion is already immutable, we would just have to let

x0::MVector (elements Float64/ComplexF64 are immutable) x::SVector (elements TPSs are mutable) E::MMatrix (elements Float64/ComplexF64 are immutable)

This is lower priority at the moment as we need to just get the normal form calculations finished first