File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,17 @@ Truncation strategy to discard the values that are larger than `atol` in absolut
9090truncabove(atol) = TruncationKeepFiltered(≤ (atol) ∘ abs)
9191
9292"""
93- TruncationIntersection(trunc1 ::TruncationStrategy, trunc2 ::TruncationStrategy)
93+ TruncationIntersection(trunc ::TruncationStrategy, truncs ::TruncationStrategy... )
9494
95- Compose two truncation strategies, keeping values common between the two strategies .
95+ Composition of multiple truncation strategies, keeping values common between them .
9696"""
9797struct TruncationIntersection{T<: Tuple{Vararg{TruncationStrategy}} } < :
9898 TruncationStrategy
9999 components:: T
100100end
101+ TruncationIntersection(trunc:: TruncationStrategy , truncs:: TruncationStrategy... ) =
102+ TruncationIntersection((trunc, truncs... ))
103+
101104function Base.:& (trunc1:: TruncationStrategy , trunc2:: TruncationStrategy )
102105 return TruncationIntersection((trunc1, trunc2))
103106end
You can’t perform that action at this time.
0 commit comments