Skip to content

Commit a3bbee9

Browse files
authored
Don't export Krylov.solve! (#973)
* Don't export Krylov.solve! * Update runtests.jl * Update gpu.jl
1 parent a1c02f4 commit a3bbee9

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/krylov_solve.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
solve!(solver, args...; kwargs...)
1919
2020
Generic function that dispatches to the appropriate in-place Krylov method based on the type of `solver`.
21+
This function is not exported to prevent potential conflicts with other Julia packages.
2122
"""
2223
function solve! end
2324

src/krylov_solvers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BilqSolver, QmrSolver, BilqrSolver, CglsSolver, CglsLanczosShiftSolver, CrlsSolv
55
CrmrSolver, LslqSolver, LsqrSolver, LsmrSolver, LnlqSolver, CraigSolver, CraigmrSolver,
66
GmresSolver, FomSolver, GpmrSolver, FgmresSolver, CarSolver, MinaresSolver
77

8-
export solve!, solution, nsolution, statistics, issolved, issolved_primal, issolved_dual,
8+
export solution, nsolution, statistics, issolved, issolved_primal, issolved_dual,
99
niterations, Aprod, Atprod, Bprod, warm_start!
1010

1111
export KrylovConstructor

test/gpu/gpu.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using SparseArrays, Random, Test
22
using LinearAlgebra, Krylov, KernelAbstractions
3+
import Krylov.solve!
34

45
if VERSION < v"1.11"
56
@kernel function copy_triangle_kernel!(dest, src)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Krylov, LinearAlgebra, SparseArrays, Printf, Random, Test
2-
import Krylov.KRYLOV_SOLVERS
2+
import Krylov: KRYLOV_SOLVERS, solve!
33

44
Random.seed!(666)
55

0 commit comments

Comments
 (0)