Skip to content

Commit 0475754

Browse files
committed
add MaybeBlasVec and MaybeBlasVecOrMat
1 parent 295a354 commit 0475754

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/yalapack.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ using LinearAlgebra: BlasFloat, BlasReal, BlasComplex, BlasInt, Char, LAPACK,
1515
using LinearAlgebra.BLAS: @blasfunc, libblastrampoline
1616
using LinearAlgebra.LAPACK: chkfinite, chktrans, chkside, chkuplofinite, chklapackerror
1717

18-
# type alias for matrices that are definitely supported by YALAPACK
18+
# type alias for vectors/matrices that are definitely supported by YALAPACK
19+
const BlasVec{T <: BlasFloat} = StridedVector{T}
1920
const BlasMat{T <: BlasFloat} = StridedMatrix{T}
20-
# type alias for matrices that are possibly supported by YALAPACK, after conversion
21+
# type alias for vectors/matrices that are possibly supported by YALAPACK, after conversion
22+
const MaybeBlasVec = Union{BlasVec, AbstractVector{<:Integer}}
2123
const MaybeBlasMat = Union{BlasMat, AbstractMatrix{<:Integer}}
24+
const MaybeBlasVecOrMat = Union{MaybeBlasVec, MaybeBlasMat}
2225

2326
# LU factorisation (currently unused in MatrixAlgebraKit)
2427
# for (getrf, getrs, elty) in (

0 commit comments

Comments
 (0)