From 95d009b49d78c9638a22d486eb23c31351e3f386 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sat, 15 Feb 2025 16:06:43 +0530 Subject: [PATCH] Remove `LinearAlgebra` qualifications in `cholesky.jl` --- src/cholesky.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cholesky.jl b/src/cholesky.jl index 20aef53a..db2a3de2 100644 --- a/src/cholesky.jl +++ b/src/cholesky.jl @@ -305,7 +305,7 @@ function _cholpivoted!(A::AbstractMatrix, ::Type{UpperTriangular}, tol::Real, ch rTA = real(eltype(A)) # checks Base.require_one_based_indexing(A) - n = LinearAlgebra.checksquare(A) + n = checksquare(A) # initialization piv = collect(1:n) dots = zeros(rTA, n) @@ -354,7 +354,7 @@ function _cholpivoted!(A::AbstractMatrix, ::Type{LowerTriangular}, tol::Real, ch rTA = real(eltype(A)) # checks Base.require_one_based_indexing(A) - n = LinearAlgebra.checksquare(A) + n = checksquare(A) # initialization piv = collect(1:n) dots = zeros(rTA, n) @@ -798,7 +798,7 @@ function rdiv!(B::AbstractMatrix, C::Cholesky) end end -function LinearAlgebra.rdiv!(B::AbstractMatrix, C::CholeskyPivoted) +function rdiv!(B::AbstractMatrix, C::CholeskyPivoted) n = size(C, 2) for i in 1:size(B, 1) permute!(view(B, i, 1:n), C.piv) @@ -950,7 +950,7 @@ function lowrankdowndate!(C::Cholesky, v::AbstractVector) s = conj(v[i]/Aii) s2 = abs2(s) if s2 > 1 - throw(LinearAlgebra.PosDefException(i)) + throw(PosDefException(i)) end c = sqrt(1 - abs2(s))