File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -856,17 +856,17 @@ Examples
856
856
1 + 1im
857
857
858
858
julia> ArrayInterface.is_lazy_conjugate(a)
859
- true
859
+ True()
860
860
861
861
julia> b = a'
862
862
1×2 adjoint(transpose(adjoint(::Vector{Complex{Int64}}))) with eltype Complex{Int64}:
863
863
1+1im 1-1im
864
864
865
865
julia> ArrayInterface.is_lazy_conjugate(b)
866
- false
866
+ False()
867
867
868
868
"""
869
- is_lazy_conjugate (:: T ) where {T <: AbstractArray } = _is_lazy_conjugate (T, false )
869
+ is_lazy_conjugate (:: T ) where {T <: AbstractArray } = _is_lazy_conjugate (T, False () )
870
870
871
871
function _is_lazy_conjugate (:: Type{T} , isconj) where {T <: AbstractArray }
872
872
Tp = parent_type (T)
Original file line number Diff line number Diff line change @@ -827,14 +827,13 @@ end
827
827
828
828
@testset " lazy conj" begin
829
829
a = rand (ComplexF64, 2 )
830
- @test is_lazy_conjugate (a) == false
830
+ @test @inferred ( is_lazy_conjugate (a) ) == false
831
831
b = a'
832
- @test is_lazy_conjugate (b) == true
832
+ @test @inferred ( is_lazy_conjugate (b) ) == true
833
833
c = transpose (b)
834
- @test is_lazy_conjugate (c) == true
834
+ @test @inferred ( is_lazy_conjugate (c) ) == true
835
835
d = c'
836
- @test is_lazy_conjugate (d) == false
836
+ @test @inferred ( is_lazy_conjugate (d) ) == false
837
837
e = permutedims (d)
838
- @test is_lazy_conjugate (e) == false
839
- end
840
-
838
+ @test @inferred (is_lazy_conjugate (e)) == false
839
+ end
You can’t perform that action at this time.
0 commit comments