You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/basics/common_solver_opts.md
+41-28Lines changed: 41 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,65 +32,72 @@ The verbosity system in LinearSolve.jl provides fine-grained control over the di
32
32
33
33
The verbosity system is organized hierarchically into three main categories:
34
34
35
-
1. Error Control - Messages related to fallbacks and error handling
36
-
2. Performance - Messages related to performance considerations
37
-
3. Numerical - Messages related to numerical solvers and iterations
35
+
1. Error Control - Messages related to fallbacks and error handling
36
+
2. Performance - Messages related to performance considerations
37
+
3. Numerical - Messages related to numerical solvers and iterations
38
38
39
39
Each category can be configured independently, and individual settings can be adjusted to suit your needs.
40
40
41
41
### Verbosity Levels
42
+
42
43
The following verbosity levels are available:
43
44
44
45
#### Individual Settings
46
+
45
47
These settings are meant for individual settings within a category. These can also be used to set all of the individual settings in a group to the same value.
46
-
- Verbosity.None() - Suppress all messages
47
-
- Verbosity.Info() - Show message as log message at info level
48
-
- Verbosity.Warn() - Show warnings (default for most settings)
49
-
- Verbosity.Error() - Throw errors instead of warnings
50
-
- Verbosity.Level(n) - Show messages with a log level setting of n
48
+
49
+
- Verbosity.None() - Suppress all messages
50
+
- Verbosity.Info() - Show message as log message at info level
51
+
- Verbosity.Warn() - Show warnings (default for most settings)
52
+
- Verbosity.Error() - Throw errors instead of warnings
53
+
- Verbosity.Level(n) - Show messages with a log level setting of n
51
54
52
55
#### Group Settings
53
-
These settings are meant for controlling a group of settings.
54
-
- Verbosity.Default() - Use the default settings
55
-
- Verbosity.All() - Show all possible messages
56
56
57
-
### Basic Usage
57
+
These settings are meant for controlling a group of settings.
58
+
59
+
- Verbosity.Default() - Use the default settings
60
+
- Verbosity.All() - Show all possible messages
61
+
62
+
### Basic Usage
58
63
59
64
#### Global Verbosity Control
60
65
61
-
```julia
66
+
```julia
62
67
using LinearSolve
63
68
64
69
# Suppress all messages
65
70
verbose =LinearVerbosity(Verbosity.None())
66
71
prob =LinearProblem(A, b)
67
-
sol =solve(prob; verbose=verbose)
72
+
sol =solve(prob; verbose=verbose)
68
73
69
74
# Show all messages
70
75
verbose =LinearVerbosity(Verbosity.All())
71
-
sol =solve(prob; verbose=verbose)
76
+
sol =solve(prob; verbose=verbose)
72
77
73
78
# Use default settings
74
79
verbose =LinearVerbosity(Verbosity.Default())
75
-
sol =solve(prob; verbose=verbose)
80
+
sol =solve(prob; verbose=verbose)
76
81
```
77
82
78
-
#### Group Level Control
83
+
#### Group Level Control
79
84
80
-
```julia
85
+
```julia
81
86
# Customize by category
82
87
verbose =LinearVerbosity(
83
88
error_control = Verbosity.Warn(), # Show warnings for error control related issues
0 commit comments