Skip to content

Commit e0b59a7

Browse files
authored
Remove LinearAlgebra qualifications in cholesky.jl (#1209)
Since the code in `cholesky.jl` doesn't live in a separate module, we don't need to qualify the functions or types by the module name. These should all be available to `cholesky.jl` directly.
2 parents ed35a37 + 95d009b commit e0b59a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cholesky.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function _cholpivoted!(A::AbstractMatrix, ::Type{UpperTriangular}, tol::Real, ch
305305
rTA = real(eltype(A))
306306
# checks
307307
Base.require_one_based_indexing(A)
308-
n = LinearAlgebra.checksquare(A)
308+
n = checksquare(A)
309309
# initialization
310310
piv = collect(1:n)
311311
dots = zeros(rTA, n)
@@ -354,7 +354,7 @@ function _cholpivoted!(A::AbstractMatrix, ::Type{LowerTriangular}, tol::Real, ch
354354
rTA = real(eltype(A))
355355
# checks
356356
Base.require_one_based_indexing(A)
357-
n = LinearAlgebra.checksquare(A)
357+
n = checksquare(A)
358358
# initialization
359359
piv = collect(1:n)
360360
dots = zeros(rTA, n)
@@ -798,7 +798,7 @@ function rdiv!(B::AbstractMatrix, C::Cholesky)
798798
end
799799
end
800800

801-
function LinearAlgebra.rdiv!(B::AbstractMatrix, C::CholeskyPivoted)
801+
function rdiv!(B::AbstractMatrix, C::CholeskyPivoted)
802802
n = size(C, 2)
803803
for i in 1:size(B, 1)
804804
permute!(view(B, i, 1:n), C.piv)
@@ -950,7 +950,7 @@ function lowrankdowndate!(C::Cholesky, v::AbstractVector)
950950
s = conj(v[i]/Aii)
951951
s2 = abs2(s)
952952
if s2 > 1
953-
throw(LinearAlgebra.PosDefException(i))
953+
throw(PosDefException(i))
954954
end
955955
c = sqrt(1 - abs2(s))
956956

0 commit comments

Comments
 (0)