Skip to content

Commit 4f2b39c

Browse files
authored
Adjustment to AdjointQ introduction in LinearAlgebra (#91)
1 parent 1ae32bf commit 4f2b39c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GenericLinearAlgebra"
22
uuid = "14197337-ba66-59df-a3e3-ca00e7dcff7a"
3-
version = "0.3.4"
3+
version = "0.3.5"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -9,6 +9,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
99
libblastrampoline_jll = "8e850b90-86db-534c-a0d3-1478176c7d93"
1010

1111
[compat]
12+
Quaternions = "=0.6.0"
1213
julia = "1.6"
1314

1415
[extras]

src/svd.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ using LinearAlgebra
22

33
import LinearAlgebra: mul!, rmul!
44

5+
AdjointQtype = isdefined(LinearAlgebra, :AdjointQ) ? LinearAlgebra.AdjointQ : Adjoint
6+
57
lmul!(G::LinearAlgebra.Givens, ::Nothing) = nothing
68
rmul!(::Nothing, G::LinearAlgebra.Givens) = nothing
79

@@ -347,7 +349,7 @@ function lmul!(Q::LinearAlgebra.HessenbergQ, B::AbstractVecOrMat)
347349
return B
348350
end
349351

350-
function lmul!(adjQ::Adjoint{<:Any,<:LinearAlgebra.HessenbergQ}, B::AbstractVecOrMat)
352+
function lmul!(adjQ::AdjointQtype{<:Any,<:LinearAlgebra.HessenbergQ}, B::AbstractVecOrMat)
351353

352354
Q = parent(adjQ)
353355
m, n = size(B, 1), size(B, 2)
@@ -398,8 +400,7 @@ function rmul!(A::AbstractMatrix, Q::LinearAlgebra.HessenbergQ)
398400
return A
399401
end
400402

401-
function rmul!(A::AbstractMatrix, adjQ::Adjoint{<:Any,<:LinearAlgebra.HessenbergQ})
402-
403+
function rmul!(A::AbstractMatrix, adjQ::AdjointQtype{<:Any,<:LinearAlgebra.HessenbergQ})
403404
m, n = size(A)
404405
Q = parent(adjQ)
405406

0 commit comments

Comments
 (0)