Skip to content

Commit 1c3a5f5

Browse files
committed
rework default_householder_driver
1 parent 7d24951 commit 1c3a5f5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/interface/decompositions.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@ Depending on the driver, various other keywords may be (un)available to customiz
8181
@algdef Householder
8282

8383
default_householder_driver(A) = Native()
84+
8485
default_householder_driver(::YALAPACK.MaybeBlasMat) = LAPACK()
8586

87+
# note: StridedVector fallback is needed for handling reshaped parent types
88+
default_householder_driver(::StridedVector{<:BlasFloat}) = LAPACK()
89+
default_householder_driver(A::Union{SubArray, Base.ReshapedArray}) = default_householder_driver(parent(A))
90+
91+
8692
# General Eigenvalue Decomposition
8793
# -------------------------------
8894
"""

0 commit comments

Comments
 (0)