-
-
Notifications
You must be signed in to change notification settings - Fork 88
Fix docstring warnings and remove warnonly from makedocs (#378) #909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [deps] | ||
| Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
| LinearSolve = "7ed4a6bd-45f5-4d41-b270-4a48e9bafcae" | ||
| LinearSolveAutotune = "67398393-80e8-4254-b7e4-1b9a36a3c5b6" | ||
| SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961" | ||
|
|
||
| [compat] | ||
| Documenter = "1" | ||
| LinearSolve = "3" | ||
| LinearSolveAutotune = "1.1" | ||
| SciMLOperators = "1" |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,37 @@ end | |
|
|
||
| @reexport using SciMLBase | ||
|
|
||
| # Attach LinearProblem docstring to LinearSolve module for Documenter.jl | ||
| # (LinearProblem is defined in SciMLBase but reexported here) | ||
| @doc """ | ||
| LinearProblem(A, b; u0 = nothing, p = nothing) | ||
|
Comment on lines
+99
to
+102
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No this is piracy |
||
| LinearProblem{iip}(A, b; u0 = nothing, p = nothing) | ||
|
|
||
| Define a linear system problem ``Au = b``. | ||
|
|
||
| ## Arguments | ||
|
|
||
| - `A`: The coefficient matrix or linear operator. Can be a dense matrix, sparse matrix, | ||
| or any `AbstractSciMLOperator`. | ||
| - `b`: The right-hand side vector. | ||
| - `u0`: (optional) Initial guess for iterative solvers. Defaults to `nothing`. | ||
| - `p`: (optional) Parameters for the problem. Defaults to `nothing`. | ||
|
|
||
| ## Example | ||
|
Comment on lines
+101
to
+115
|
||
|
|
||
| ```julia | ||
| using LinearSolve | ||
|
|
||
| A = [1.0 2.0; 3.0 4.0] | ||
| b = [5.0, 6.0] | ||
| prob = LinearProblem(A, b) | ||
| sol = solve(prob) | ||
| sol.u # solution vector | ||
| ``` | ||
|
|
||
| For more details, see the [SciMLBase LinearProblem documentation](https://docs.sciml.ai/SciMLBase/stable/). | ||
| """ LinearProblem | ||
|
|
||
| """ | ||
| SciMLLinearSolveAlgorithm <: SciMLBase.AbstractLinearAlgorithm | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -498,6 +498,27 @@ end | |
|
|
||
| ## LDLtFactorization | ||
|
|
||
| """ | ||
| LDLtFactorization(shift = 0.0, perm = nothing) | ||
|
|
||
| A wrapper around `LinearAlgebra.ldlt!` for `LDLt` factorization of symmetric | ||
| (or Hermitian) positive semi-definite tridiagonal matrices (e.g. `SymTridiagonal`). | ||
|
|
||
| ## Keyword Arguments | ||
|
|
||
| - `shift`: Diagonal shift applied before factoring. Defaults to `0.0`. | ||
| - `perm`: Optional permutation vector. Defaults to `nothing`. | ||
|
|
||
|
Comment on lines
+501
to
+511
|
||
| ## Example | ||
|
|
||
| ```julia | ||
| using LinearSolve, LinearAlgebra | ||
| A = SymTridiagonal([4.0, 5.0, 6.0], [1.0, 2.0]) | ||
| b = [1.0, 2.0, 3.0] | ||
| prob = LinearProblem(A, b) | ||
| sol = solve(prob, LDLtFactorization()) | ||
| ``` | ||
| """ | ||
| struct LDLtFactorization{T} <: AbstractDenseFactorization | ||
| shift::Float64 | ||
| perm::T | ||
|
Comment on lines
522
to
524
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new
@docsblocks reference solvers that (per the notes) require optional packages/JLLs. Withwarnonlyremoved, docs will now hard-fail if these symbols aren’t defined/loaded during documentation build (common when solver types are provided via package extensions that only activate when the dependency is in the docs environment). Consider ensuring the docs environment includes the needed optional deps (e.g.,blis_jll,LAPACK_jll,AlgebraicMultigrid,PETSc, possiblySparseArrayswhere relevant), or conditionally including these@docsblocks only when the dependency is available.