@@ -106,12 +106,14 @@ Base.eltype(cfg::AbstractConfig) = eltype(typeof(cfg))
106
106
function maketag (kind:: Union{Symbol,Nothing} , f, X)
107
107
if kind === :default
108
108
return Tag (f, X)
109
- elseif kind === :small
109
+ elseif kind === :type
110
+ return Tag (f, X)
111
+ elseif kind === :hash
110
112
return SmallTag (f, X)
111
113
elseif kind === nothing
112
114
return nothing
113
115
else
114
- throw (ArgumentError (" tag may be :default, :small , or nothing" ))
116
+ throw (ArgumentError (" tag may be :default, :type, :hash , or nothing" ))
115
117
end
116
118
end
117
119
@@ -137,8 +139,8 @@ If `f!` is `nothing` instead of the actual target function, then the returned in
137
139
be used with any target function. However, this will reduce ForwardDiff's ability to catch
138
140
and prevent perturbation confusion (see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
139
141
140
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
141
- with similar accuracy, but is much smaller when printing types .
142
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
143
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
142
144
143
145
This constructor does not store/modify `y` or `x`.
144
146
"""
@@ -189,8 +191,8 @@ If `f` or `tag` is `nothing`, then the returned instance can be used with any ta
189
191
However, this will reduce ForwardDiff's ability to catch and prevent perturbation confusion
190
192
(see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
191
193
192
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
193
- with similar accuracy, but is much smaller when printing types .
194
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
195
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
194
196
195
197
This constructor does not store/modify `x`.
196
198
"""
@@ -243,8 +245,8 @@ If `f` or `tag` is `nothing`, then the returned instance can be used with any ta
243
245
However, this will reduce ForwardDiff's ability to catch and prevent perturbation confusion
244
246
(see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
245
247
246
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
247
- with similar accuracy, but is much smaller when printing types .
248
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
249
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
248
250
249
251
This constructor does not store/modify `x`.
250
252
"""
@@ -285,8 +287,8 @@ If `f!` or `tag` is `nothing`, then the returned instance can be used with any t
285
287
However, this will reduce ForwardDiff's ability to catch and prevent perturbation confusion
286
288
(see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
287
289
288
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
289
- with similar accuracy, but is much smaller when printing types .
290
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
291
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
290
292
291
293
This constructor does not store/modify `y` or `x`.
292
294
"""
@@ -345,8 +347,8 @@ If `f` or `tag` is `nothing`, then the returned instance can be used with any ta
345
347
However, this will reduce ForwardDiff's ability to catch and prevent perturbation confusion
346
348
(see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
347
349
348
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
349
- with similar accuracy, but is much smaller when printing types .
350
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
351
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
350
352
351
353
This constructor does not store/modify `x`.
352
354
"""
@@ -386,8 +388,8 @@ If `f` or `tag` is `nothing`, then the returned instance can be used with any ta
386
388
However, this will reduce ForwardDiff's ability to catch and prevent perturbation confusion
387
389
(see https://github.com/JuliaDiff/ForwardDiff.jl/issues/83).
388
390
389
- If `tag` is `:small `, a small hash-based tag is provided. This tracks perturbation confusion
390
- with similar accuracy, but is much smaller when printing types .
391
+ If `tag` is `:hash `, a small hash-based tag is provided. This tracks perturbation confusion
392
+ with similar accuracy, but is much smaller than `tag = :type`, which stores the full type .
391
393
392
394
This constructor does not store/modify `x`.
393
395
"""
0 commit comments