Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulxshen committed Sep 1, 2024
1 parent 54347f4 commit 8561720
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ArrayPadding"
uuid = "fe5ef43c-4912-423d-9170-4bd5cb6a013a"
authors = ["Paul Shen <pxshen@alumni.stanford.edu>"]
version = "0.1.28"
version = "0.1.29"

[deps]
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
Expand Down
8 changes: 4 additions & 4 deletions src/types.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

struct PaddedArray
# struct PaddedArray
struct PaddedArray{T,N} <: AbstractArray{T,N}
a
l
r
function PaddedArray(a, l=left(a), r=right(a))
new(a, l, r)
new{eltype(a),ndims(a)}(array(a), l, r)
# new(a, l, r)
end
end
# struct PaddedArray{T,N} <: AbstractArray{T,N}
# a
# l
# r
# function PaddedArray(a, l=left(a), r=right(a))
# new{eltype(a),ndims(a)}(collect(a), l, r)
# end
# end
@functor PaddedArray
Expand Down

0 comments on commit 8561720

Please sign in to comment.