Skip to content

Releases: ManyBodyLab/PeriodicArrays.jl

v2.0.0

02 Apr 18:19
f76ad83

Choose a tag to compare

PeriodicArrays v2.0.0

Diff since v1.1.1

Breaking changes:

  • PeriodicArray type signature: {T,N,A,F} → {T,N,A,F,G} (adds imap type param G)
  • Internal field renamed from .map to .fmap; new .imap field added
  • Source split into types.jl, indexing.jl, broadcast.jl, vector_interface.jl,
    repeat.jl, circshift.jl, reverse.jl, mapped_ref.jl

New features:

  • PeriodicArray now accepts an explicit imap for setindex! (defaults to
    NegatedShiftMap(fmap) when omitted, preserving previous behaviour)
  • New MappedRef type and mapped_ref(arr, I...) for lazy mutable out-of-bounds
    element access, fixing iterated mutation (e.g. x[i][j] = v)

Merged pull requests:

v1.1.1

31 Mar 21:53
e5f110f

Choose a tag to compare

PeriodicArrays v1.1.1

Diff since v1.1.0

  • Replaces Broadcast.ArrayStyle{PeriodicArray{T,N,A,F}} with a new PeriodicArrayStyle{N} <: AbstractArrayStyle{N} carrying dimensionality with proper style promotion rules.
  • Adds _find_pa helper to recover the PeriodicArray (and its .map) from anywhere in a broadcast argument tree, fixing the fragile bc.args[1].map assumption.
  • Fixes scalar-first broadcasts (1 .+ pa), mixed-element-type PA operations, and PA-with-plain-array broadcasts that previously errored or silently returned a plain Array.
  • Bumps version to 1.1.1 (bug fix).

Merged pull requests:

  • Bump gustavofreze/auto-assign from 2.0.0 to 2.1.0 (#4) (@dependabot[bot])
  • Bump julia-actions/cache from 2 to 3 (#5) (@dependabot[bot])
  • Bump codecov/codecov-action from 5 to 6 (#6) (@dependabot[bot])
  • fix: replace ArrayStyle with PeriodicArrayStyle for correct broadcast dispatch (#7) (@AFeuerpfeil)

v1.1.0

17 Dec 21:18

Choose a tag to compare

PeriodicArrays v1.1.0

Diff since v1.0.0

Changes

  • Add support for Base.repeat and Base.reverse

Merged pull requests:

  • add support for Base.repeat, Base.reverse & update README (#1) (@AFeuerpfeil)
  • Bump gustavofreze/auto-assign from 1.1.4 to 2.0.0 (#3) (@dependabot[bot])

v1.0.0

07 Dec 20:47

Choose a tag to compare

PeriodicArrays v1.0.0