Skip to content

Commit

Permalink
Add reverse/reverse! for Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Sep 14, 2024
1 parent 8dbec8e commit 1f1a5eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sequence_spaces/sequence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ function Base.fill!(a::Sequence, value)
return a
end

Base.reverse(a::Sequence; dims = :) = Sequence(space(a), reverse(coefficients(a); dims = dims))

Base.reverse!(a::Sequence; dims = :) = Sequence(space(a), reverse!(coefficients(a); dims = dims))

Base.copy(a::Sequence) = Sequence(space(a), copy(coefficients(a)))

Base.similar(a::Sequence) = Sequence(space(a), similar(coefficients(a)))
Expand Down

0 comments on commit 1f1a5eb

Please sign in to comment.