Closed
Description
openedon Jan 16, 2024
MWE:
julia> Array(reinterpret(reshape, Float32, ComplexF32[1.0f0+2.0f0*im]))
ERROR: MethodError: no method matching isassigned(::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true}, ::Base.SCartesianIndex2{2})
Closest candidates are:
isassigned(::AbstractArray, ::CartesianIndex)
@ Base multidimensional.jl:1568
isassigned(::AbstractArray, ::Union{Integer, CartesianIndex}...)
@ Base multidimensional.jl:1569
Stacktrace:
[1] copyto_unaliased!
@ ./abstractarray.jl:1089 [inlined]
[2] copyto!(dest::Matrix{Float32}, src::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true})
@ Base ./abstractarray.jl:1058
[3] copyto_axcheck!
@ ./abstractarray.jl:1188 [inlined]
[4] Array
@ ./array.jl:612 [inlined]
[5] Array(A::Base.ReinterpretArray{Float32, 2, ComplexF32, Vector{ComplexF32}, true})
@ Core ./boot.jl:601
[6] top-level scope
@ REPL[8]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment