Skip to content

Commit 17e0537

Browse files
committed
Module BasicLU
1 parent 262489a commit 17e0537

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "basiclu"
1+
name = "BasicLU"
22
uuid = "f55c55da-c227-4c78-8e30-b72a48476979"
33
authors = ["Lukas Schork (@lschork2)", "Alexis Montoison (@amontoison)"]
44
version = "0.1.0"

src/basiclu.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Julia interface to BASICLU
33
#
44

5-
module basiclu
5+
module BasicLU
66

77
using LinearAlgebra
88
using Printf
@@ -273,10 +273,10 @@ Export LU factors after fresh factorization.
273273
```jldoctest
274274
julia> m = 100;
275275
julia> B = spdiagm((ones(m-1), 4*ones(m), ones(m-1)), [-1 0 1]);
276-
julia> this = basiclu.initialize(m);
277-
julia> basiclu.factorize(this, B)
276+
julia> this = BasicLU.initialize(m);
277+
julia> BasicLU.factorize(this, B)
278278
0
279-
julia> (L,U,p,q) = basiclu.get_factors(this);
279+
julia> (L,U,p,q) = BasicLU.get_factors(this);
280280
julia> norm(L*U-B[p,q], Inf)
281281
1.1102230246251565e-16
282282
```

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using LinearAlgebra, SparseArrays, MAT
22
using Printf, Test
3-
using basiclu
3+
using BasicLU
44

55
include("utils.jl")
66

@@ -9,10 +9,10 @@ test_factorize("./data/", true)
99
test_update("./data/")
1010

1111
m = 1000
12-
this = basiclu.initialize(m)
12+
this = BasicLU.initialize(m)
1313
B = sprand(m, m, 5e-3) + I
14-
err = basiclu.factorize(this, B)
15-
if err basiclu.BASICLU_OK
14+
err = BasicLU.factorize(this, B)
15+
if err BasicLU.BASICLU_OK
1616
error("factorization failed or singular")
1717
end
1818
rhs = randn(m)

test/utils.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
cint = basiclu.cint
2-
cdbl = basiclu.cdbl
3-
spvector = basiclu.spvector
4-
spmatrix = basiclu.spmatrix
5-
BASICLU_OK = basiclu.BASICLU_OK
6-
BASICLU_UPDATE_COST = basiclu.BASICLU_UPDATE_COST
7-
BASICLU_NFACTORIZE = basiclu.BASICLU_NFACTORIZE
8-
BASICLU_NFORREST_TOTAL = basiclu.BASICLU_NFORREST_TOTAL
9-
BASICLU_NUPDATE_TOTAL = basiclu.BASICLU_NUPDATE_TOTAL
1+
cint = BasicLU.cint
2+
cdbl = BasicLU.cdbl
3+
spvector = BasicLU.spvector
4+
spmatrix = BasicLU.spmatrix
5+
BASICLU_OK = BasicLU.BASICLU_OK
6+
BASICLU_UPDATE_COST = BasicLU.BASICLU_UPDATE_COST
7+
BASICLU_NFACTORIZE = BasicLU.BASICLU_NFACTORIZE
8+
BASICLU_NFORREST_TOTAL = BasicLU.BASICLU_NFORREST_TOTAL
9+
BASICLU_NUPDATE_TOTAL = BasicLU.BASICLU_NUPDATE_TOTAL
1010

1111
# =============================================================================
1212
# readmat: read variables from MATLAB file

0 commit comments

Comments
 (0)