Skip to content

Commit

Permalink
Merge branch 'master' into dim-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokazama authored Aug 7, 2021
2 parents 266f138 + 2c1fcbb commit 12fc825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ArrayInterface"
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
version = "3.1.22"
version = "3.1.23"

[deps]
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
Expand Down
6 changes: 3 additions & 3 deletions src/ArrayInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end

const CanonicalInt = Union{Int,StaticInt}

if VERSION v"1.6.0-DEV.1581"
@static if VERSION v"1.6.0-DEV.1581"
_is_reshaped(::Type{ReinterpretArray{T,N,S,A,true}}) where {T,N,S,A} = true
_is_reshaped(::Type{ReinterpretArray{T,N,S,A,false}}) where {T,N,S,A} = false
else
Expand Down Expand Up @@ -140,7 +140,7 @@ ismutable(::Type{BigFloat}) = false
ismutable(::Type{BigInt}) = false
function ismutable(::Type{T}) where {T}
if parent_type(T) <: T
if VERSION v"1.7.0-DEV.1208"
@static if VERSION v"1.7.0-DEV.1208"
return Base.ismutabletype(T)
else
return T.mutable
Expand Down Expand Up @@ -617,7 +617,7 @@ end


"""
is_lazy_conjugate(::AbstractArray)
is_lazy_conjugate(::AbstractArray)
Determine if a given array will lazyily take complex conjugates, such as with `Adjoint`. This will work with
nested wrappers, so long as there is no type in the chain of wrappers such that `parent_type(T) == T`
Expand Down

0 comments on commit 12fc825

Please sign in to comment.