Skip to content

v2.1.0

Choose a tag to compare

@da380 da380 released this 18 Nov 17:53
· 2 commits to main since this release
b359d30

planetmodel 2.1.0

A feature release for planetmodel.fourier. Nothing breaks: existing calls
give the same values as 2.0.0.

Added

  • Transforms at prepared points. Transform.at(points, *, route=, epsilon=, nthreads=)
    prepares a set of points once and returns a fourier.PointTransform, whose
    synthesise, synthesise_gradient and accumulate take no points and give
    the same results as the transform's methods of those names. The points'
    angles are computed once and, on the finufft route, each plan is made on
    first use and kept. At 20 000 points on a 64 × 64 grid an application takes
    about a third less time than passing the points on every call.
  • A PointTransform can be copied and pickled (its plans are rebuilt on first
    use) and is safe to apply from several threads.

Changed

  • Transform.from_rfft and Transform.to_rfft are about twice as fast for a
    single array or vector without batch axes; values are unchanged.
  • Transform.synthesise, synthesise_gradient and accumulate now run
    through a prepared-points transform internally; results and refusals are as
    before.