11module KLU
22
3- using SparseArrays
4- using SparseArrays: SparseMatrixCSC
3+ using SparseArrays: SparseArrays, SparseMatrixCSC
54import SparseArrays: nnz
65
76export klu, klu!
87
98const libklu = :libklu
9+ const libsuitesparseconfig = :libsuitesparseconfig
10+ using Base: Ptr, Cvoid, Cint, Cdouble, Cchar, Csize_t
1011include (" wrappers.jl" )
1112
12- import Base: (\ ), size, getproperty, setproperty!, propertynames, show
13+ import Base: (\ ), size, getproperty, setproperty!, propertynames, show,
14+ copy, eachindex, view, sortperm, unsafe_load, zeros, convert, eltype,
15+ length, parent, stride, finalizer, Complex, complex, imag, real, map!,
16+ summary, println, oneunit, sizeof, isdefined, setfield!, getfield,
17+ OutOfMemoryError, ArgumentError, OverflowError, ErrorException, DimensionMismatch
1318
1419# Convert from 1-based to 0-based indices
1520function decrement! (A:: AbstractArray{T} ) where {T <: Integer }
@@ -29,7 +34,8 @@ function increment!(A::AbstractArray{T}) where {T <: Integer}
2934end
3035increment (A:: AbstractArray{<:Integer} ) = increment! (copy (A))
3136
32- using LinearAlgebra
37+ using LinearAlgebra: LinearAlgebra, ldiv!, Adjoint, Transpose, Factorization
38+ import LinearAlgebra: issuccess
3339
3440const AdjointFact = isdefined (LinearAlgebra, :AdjointFactorization ) ?
3541 LinearAlgebra. AdjointFactorization : Adjoint
0 commit comments