@@ -44,7 +44,7 @@ function getrf!(A::AbstractMatrix{<:Float32}; ipiv = similar(A, BlasInt, min(siz
44
44
A, ipiv, info[], info # Error code is stored in LU factorization type
45
45
end
46
46
47
- function getrs! (trans:: AbstractChar , A:: AbstractMatrix{<:Float64} , ipiv:: AbstractVector{Cint } , B:: AbstractVecOrMat{<:Float64} ; info = Ref {Cint } ())
47
+ function getrs! (trans:: AbstractChar , A:: AbstractMatrix{<:Float64} , ipiv:: AbstractVector{BlasInt } , B:: AbstractVecOrMat{<:Float64} ; info = Ref {BlasInt } ())
48
48
require_one_based_indexing (A, ipiv, B)
49
49
LinearAlgebra. LAPACK. chktrans (trans)
50
50
chkstride1 (A, B, ipiv)
@@ -57,14 +57,14 @@ function getrs!(trans::AbstractChar, A::AbstractMatrix{<:Float64}, ipiv::Abstrac
57
57
end
58
58
nrhs = size (B, 2 )
59
59
ccall ((" dgetrs_" , MKL_jll. libmkl_rt), Cvoid,
60
- (Ref{UInt8}, Ref{Cint }, Ref{Cint }, Ptr{Float64}, Ref{Cint },
61
- Ptr{Cint }, Ptr{Float64}, Ref{Cint }, Ptr{Cint }, Clong),
60
+ (Ref{UInt8}, Ref{BlasInt }, Ref{BlasInt }, Ptr{Float64}, Ref{BlasInt },
61
+ Ptr{BlasInt }, Ptr{Float64}, Ref{BlasInt }, Ptr{BlasInt }, Clong),
62
62
trans, n, size (B,2 ), A, max (1 ,stride (A,2 )), ipiv, B, max (1 ,stride (B,2 )), info, 1 )
63
63
LinearAlgebra. LAPACK. chklapackerror (BlasInt (info[]))
64
64
B
65
65
end
66
66
67
- function getrs! (trans:: AbstractChar , A:: AbstractMatrix{<:Float32} , ipiv:: AbstractVector{Cint } , B:: AbstractVecOrMat{<:Float32} ; info = Ref {Cint } ())
67
+ function getrs! (trans:: AbstractChar , A:: AbstractMatrix{<:Float32} , ipiv:: AbstractVector{BlasInt } , B:: AbstractVecOrMat{<:Float32} ; info = Ref {BlasInt } ())
68
68
require_one_based_indexing (A, ipiv, B)
69
69
LinearAlgebra. LAPACK. chktrans (trans)
70
70
chkstride1 (A, B, ipiv)
@@ -77,8 +77,8 @@ function getrs!(trans::AbstractChar, A::AbstractMatrix{<:Float32}, ipiv::Abstrac
77
77
end
78
78
nrhs = size (B, 2 )
79
79
ccall ((" sgetrs_" , MKL_jll. libmkl_rt), Cvoid,
80
- (Ref{UInt8}, Ref{Cint }, Ref{Cint }, Ptr{Float32}, Ref{Cint },
81
- Ptr{Cint }, Ptr{Float32}, Ref{Cint }, Ptr{Cint }, Clong),
80
+ (Ref{UInt8}, Ref{BlasInt }, Ref{BlasInt }, Ptr{Float32}, Ref{BlasInt },
81
+ Ptr{BlasInt }, Ptr{Float32}, Ref{BlasInt }, Ptr{BlasInt }, Clong),
82
82
trans, n, size (B,2 ), A, max (1 ,stride (A,2 )), ipiv, B, max (1 ,stride (B,2 )), info, 1 )
83
83
LinearAlgebra. LAPACK. chklapackerror (BlasInt (info[]))
84
84
B
0 commit comments