Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulxshen committed Feb 28, 2024
1 parent a6b1657 commit 987233f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function pad(a, b, l::Union{AbstractVector,Tuple}, r=l; lazy=false)
end
a
end
function pad!(a::PaddedArray, b, l::Union{AbstractVector,Tuple}, r=l)
y = pad!(a.a, b, l, r)
PaddedArray(y, Int.(l .+ left(a)), Int.(r .+ right(a)))
end
# function pad!(a::PaddedArray, b, l::Union{AbstractVector,Tuple}, r=l)
# y = pad!(a.a, b, l, r)
# PaddedArray(y, Int.(l .+ left(a)), Int.(r .+ right(a)))
# end

function pad!(a, b, l, r=l, ol=0, or=ol)
d = ndims(a)
Expand Down

0 comments on commit 987233f

Please sign in to comment.