@@ -80,10 +80,10 @@ Truncation strategy to keep the values for which `filter` returns true.
8080truncfilter (f) = TruncationByFilter (f)
8181
8282"""
83- TruncationByValue(atol::Real, rtol::Real, p::Real, by, rev::Bool=true )
83+ TruncationByValue(atol::Real, rtol::Real, p::Real, by, rev::Bool=false )
8484
85- Truncation strategy to keep the values that satisfy `by(val) < max(atol, rtol * norm(values, p)`
86- if `rev = true `, or discard them when `rev = false `.
85+ Truncation strategy to keep the values that satisfy `by(val) > max(atol, rtol * norm(values, p)`
86+ if `rev = false `, or discard them when `rev = true `.
8787See also [`trunctol`](@ref)
8888"""
8989struct TruncationByValue{T<: Real ,P<: Real ,F} <: TruncationStrategy
@@ -98,12 +98,12 @@ function TruncationByValue(atol::Real, rtol::Real, p::Real=2, by=abs, rev::Bool=
9898end
9999
100100"""
101- trunctol(; atol::Real=0, rtol::Real=0, p::Real=2, by=abs, )
101+ trunctol(; atol::Real=0, rtol::Real=0, p::Real=2, by=abs, rev::Bool=false )
102102
103- Truncation strategy to keep the values that satisfy `by(val) < max(atol, rtol * norm(values, p)`
104- if `rev = true `, or discard them when `rev = false `.
103+ Truncation strategy to keep the values that satisfy `by(val) > max(atol, rtol * norm(values, p)`
104+ if `rev = false `, or discard them when `rev = true `.
105105"""
106- function trunctol (; atol:: Real = 0 , rtol:: Real = 0 , p:: Real = 2 , by= abs, rev:: Bool = true )
106+ function trunctol (; atol:: Real = 0 , rtol:: Real = 0 , p:: Real = 2 , by= abs, rev:: Bool = false )
107107 return TruncationByValue (atol, rtol, p, by, rev)
108108end
109109
0 commit comments