Skip to content

Commit

Permalink
Print warning because they do work when scalar allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Oct 8, 2023
1 parent 2b9ba99 commit 499a616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NDTensors/src/linearalgebra/linearalgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ matrix is unique. Returns a tuple (Q,R).
"""
function qr_positive(M::AbstractMatrix)
if iscu(M)
throw(
"Currently qr positive methods do not work for CuArrays because they require scalar operations. Please convert to CPU Array or use generic qr",
println(
"WARNING!!: Currently qr positive methods are not efficient for CuArrays because they require scalar operations. Please convert to CPU Array or use generic qr",
)
end
sparseQ, R = qr(M)
Expand Down Expand Up @@ -453,8 +453,8 @@ matrix is unique. Returns a tuple (Q,L).
"""
function ql_positive(M::AbstractMatrix)
if iscu(M)
throw(
"Currently ql positive methods do not work for CuArrays because they require scalar operations. Please convert to CPU Array or use generic ql",
println(
"WARNING!! Currently the ql positive methods are not efficient for CuArrays because they require scalar operations. Please convert to CPU Array or use generic ql",
)
end
sparseQ, L = ql(M)
Expand Down

0 comments on commit 499a616

Please sign in to comment.