Skip to content

Commit

Permalink
Include the sparse solvers API in a separate file for now since
Browse files Browse the repository at this point in the history
it conflicts with the one in julia stdlib.
  • Loading branch information
ViralBShah committed Aug 11, 2024
1 parent e3f5852 commit a236bcb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ makedocs(
sitename = "SparseArrays",
pages = Any[
"SparseArrays" => "index.md",
"Sparse Linear Algebra API" => "solvers.md",
];
warnonly = [:missing_docs, :cross_references],
)
Expand Down
31 changes: 5 additions & 26 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,17 @@ section of the standard library reference.

Sparse matrix solvers call functions from [SuiteSparse](http://suitesparse.com). The following factorizations are available:

1. [`cholesky`](@ref SparseArrays.CHOLMOD.cholesky)
2. [`ldlt`](@ref SparseArrays.CHOLMOD.ldlt)
3. [`lu`](@ref SparseArrays.UMFPACK.lu)
4. [`qr`](@ref SparseArrays.SPQR.qr)

| Type | Description |
|:----------------------|:--------------------------------------------- |
| `CHOLMOD.Factor` | Cholesky and LDLt factorizations |
| `UMFPACK.UmfpackLU` | LU factorization |
| `SPQR.QRSparse` | QR factorization |

These factorizations are described in more detail in the [Sparse Linear Algebra API section](@ref stdlib-sparse-linalg-api):

1. [`cholesky`](@ref SparseArrays.CHOLMOD.cholesky)
2. [`ldlt`](@ref SparseArrays.CHOLMOD.ldlt)
3. [`lu`](@ref SparseArrays.UMFPACK.lu)
4. [`qr`](@ref SparseArrays.SPQR.qr)

```@meta
DocTestSetup = nothing
```
Expand Down Expand Up @@ -267,25 +265,6 @@ SparseArrays.ftranspose!
DocTestSetup = nothing
```

# [Sparse Linear Algebra API](@id stdlib-sparse-linalg-api)

```@docs; canonical=false
SparseArrays.CHOLMOD.cholesky(::SparseMatrixCSC)
SparseArrays.CHOLMOD.cholesky!(::SparseMatrixCSC)
SparseArrays.CHOLMOD.lowrankupdate(::SparseMatrixCSC)
SparseArrays.CHOLMOD.lowrankupdate!(::SparseMatrixCSC)
SparseArrays.CHOLMOD.lowrankdowndate(::SparseMatrixCSC)
SparseArrays.CHOLMOD.lowrankdowndate!(::SparseMatrixCSC)
SparseArrays.CHOLMOD.lowrankupdowndate!(::SparseMatrixCSC)
SparseArrays.CHOLMOD.ldlt(::SparseMatrixCSC)
SparseArrays.UMFPACK.lu(::SparseMatrixCSC)
SparseArrays.SPQR.qr(::SparseMatrixCSC)
```

```@meta
DocTestSetup = nothing
```

# Noteworthy External Sparse Packages

Several other Julia packages provide sparse matrix implementations that should be mentioned:
Expand Down
20 changes: 20 additions & 0 deletions docs/src/solvers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Sparse Linear Algebra (API)

```@meta
DocTestSetup = :(using LinearAlgebra, SparseArrays)
```

```@docs; canonical=false
SparseArrays.CHOLMOD.cholesky
SparseArrays.CHOLMOD.cholesky!
SparseArrays.CHOLMOD.lowrankdowndate
SparseArrays.CHOLMOD.lowrankdowndate!
SparseArrays.CHOLMOD.lowrankupdowndate!
SparseArrays.CHOLMOD.ldlt
SparseArrays.SPQR.qr
SparseArrays.UMFPACK.lu
```

```@meta
DocTestSetup = nothing
```

0 comments on commit a236bcb

Please sign in to comment.