Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error converting from QR packed matrix to JLArray #71

Closed
kmp5VT opened this issue Jun 27, 2024 · 2 comments
Closed

Error converting from QR packed matrix to JLArray #71

kmp5VT opened this issue Jun 27, 2024 · 2 comments

Comments

@kmp5VT
Copy link

kmp5VT commented Jun 27, 2024

Hello,

I am trying to convert the output packed Q output of the QR decomposition of a JLArray back into a JLArray but there is a constructor error being thrown.

julia> using JLArrays, LinearAlgebra
julia> A = JLArray(randn(8,4))
julia> Q,R = qr(A)
julia> convert(typeof(A), Q)
ERROR: MethodError: no method matching JLArray{Float64, 2}(::LinearAlgebra.QRCompactWYQ{Float64, JLArray{Float64, 2}, JLArray{Float64, 2}})

Closest candidates are:
  JLArray{T, N}(::UndefInitializer, ::Tuple{Vararg{Int64, N}}) where {T, N}
   @ JLArrays ~/.julia/packages/JLArrays/hD5YX/src/JLArrays.jl:168
  JLArray{T, N}(::UndefInitializer, ::Tuple{Vararg{Integer, N}}) where {T, N}
   @ JLArrays ~/.julia/packages/JLArrays/hD5YX/src/JLArrays.jl:207
  JLArray{T, N}(::UndefInitializer, Integer...) where {T, N}
   @ JLArrays ~/.julia/packages/JLArrays/hD5YX/src/JLArrays.jl:209
  ...

Stacktrace:
 [1] convert(::Type{JLArray{Float64, 2}}, Q::LinearAlgebra.QRCompactWYQ{Float64, JLArray{Float64, 2}, JLArray{Float64, 2}})
   @ LinearAlgebra ~/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/LinearAlgebra/src/abstractq.jl:49
 [2] top-level scope
   @ ~/.julia/dev/testing.jl:187
@mateuszbaran
Copy link
Collaborator

Hi! I think you should report this issue in the JLArrays package rather than HybridArrays.

@kmp5VT
Copy link
Author

kmp5VT commented Jun 27, 2024

Oh thank you I misread the library.

@kmp5VT kmp5VT closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants