Skip to content

Commit a2c1cc5

Browse files
authored
Merge pull request #13 from lkdvos/cat
Implement `_cat` instead of `cat`
2 parents d760a1f + d1cf521 commit a2c1cc5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DerivableInterfaces"
22
uuid = "6c5e35bf-e59e-4898-b73c-732dcc4ba65f"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.8"
4+
version = "0.3.9"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/abstractarrayinterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ end
325325
return a_dest
326326
end
327327

328-
@interface interface::AbstractArrayInterface function Base.cat(as::AbstractArray...; dims)
328+
@interface interface::AbstractArrayInterface function Base._cat(dims, as::AbstractArray...)
329329
a_dest = similar(Cat(as...; dims))
330330
@interface interface cat!(a_dest, as...; dims)
331331
return a_dest

src/traits.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function derive(::Val{:AbstractArrayOps}, type)
4545
Base.permutedims!(::Any, ::$type, ::Any)
4646
Broadcast.BroadcastStyle(::Type{<:$type})
4747
Base.copyto!(::$type, ::Broadcast.Broadcasted{Broadcast.DefaultArrayStyle{0}})
48-
Base.cat(::$type...; kwargs...)
48+
Base._cat(::Any, ::$type...)
4949
ArrayLayouts.MemoryLayout(::Type{<:$type})
5050
LinearAlgebra.mul!(::AbstractMatrix, ::$type, ::$type, ::Number, ::Number)
5151
end

0 commit comments

Comments
 (0)