Skip to content

Commit 87e4135

Browse files
authored
Merge pull request #154 from MasonProtter/patch-1
Make `is_lazy_conjugate` always `False` for real `eltype`
2 parents b910ae6 + b765999 commit 87e4135

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "3.1.13"
3+
version = "3.1.14"
44

55
[deps]
66
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"

src/ArrayInterface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ Examples
867867
868868
"""
869869
is_lazy_conjugate(::T) where {T <: AbstractArray} = _is_lazy_conjugate(T, False())
870+
is_lazy_conjugate(::AbstractArray{<:Real}) = False()
870871

871872
function _is_lazy_conjugate(::Type{T}, isconj) where {T <: AbstractArray}
872873
Tp = parent_type(T)

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,4 +836,6 @@ end
836836
@test @inferred(is_lazy_conjugate(d)) == false
837837
e = permutedims(d)
838838
@test @inferred(is_lazy_conjugate(e)) == false
839+
840+
@test @inferred(is_lazy_conjugate([1,2,3]')) == false # We don't care about conj on `<:Real`
839841
end

0 commit comments

Comments
 (0)