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

Make maps entirely immutable internally including TPSs #36

Closed mattsignorelli closed 2 months ago

mattsignorelli commented 2 months ago

This would allow usage of SVectors which could make things much faster

Quaternion from ReferenceFrameRotations also required immutable TPSs (contains tuple not vector of tpsa's internally)

mattsignorelli commented 2 months ago

OK internally they can be entirely immutable now per #37 .

The Quaternion type of ReferenceFrameRotations.jl was used and a multiplication method overloaded with @FastGTPSA. Spin still needs to be tested though.

All of the normal form algorithms agree with before the change.

Internally Vector and Matrix are still used, I think it will be a ton of work to make these staticvectors and I don't see much benefit at the moment