Skip to content

Commit c557298

Browse files
committed
fix type instability
1 parent f64bda0 commit c557298

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/users_guide/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All settings are stored in [`QuantumToolbox.settings`](@ref).
1111

1212
Here, we list out each setting along with the specific functions that will use it.
1313

14-
- `tidyup_tol::Real = 1e-14` : tolerance for [`tidyup`](@ref) and [`tidyup!`](@ref).
14+
- `tidyup_tol::Float64 = 1e-14` : tolerance for [`tidyup`](@ref) and [`tidyup!`](@ref).
1515
- `auto_tidyup::Bool = true` : Automatically tidyup during the following situations:
1616
* Solving for eigenstates, including [`eigenstates`](@ref), [`eigsolve`](@ref), and [`eigsolve_al`](@ref).
1717
- (to be announced)

src/settings.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Base.@kwdef struct Settings
2-
tidyup_tol::Ref{Real} = 1e-14
2+
tidyup_tol::Ref{Float64} = 1e-14
33
auto_tidyup::Ref{Bool} = true
44
end
55

@@ -17,7 +17,7 @@ Contains all the default global settings of QuantumToolbox.jl.
1717
1818
# List of settings
1919
20-
- `tidyup_tol::Real = 1e-14` : tolerance for [`tidyup`](@ref) and [`tidyup!`](@ref).
20+
- `tidyup_tol::Float64 = 1e-14` : tolerance for [`tidyup`](@ref) and [`tidyup!`](@ref).
2121
- `auto_tidyup::Bool = true` : Automatically tidyup.
2222
2323
For detailed explanation of each settings, see our documentation [here](https://qutip.org/QuantumToolbox.jl/stable/users_guide/settings).

0 commit comments

Comments
 (0)