Skip to content

Commit 733cf4a

Browse files
authored
Update advanced.md
Added comment on where the NANSAFE_MODE_ENABLED constant is located, since this was not clear.
1 parent 4c7495d commit 733cf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/user/advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ decrease performance (~5%-10% on our benchmarks).
139139
In order to preserve performance in the majority of use cases, ForwardDiff disables this
140140
check by default. If your code is affected by this `NaN` behavior, you can enable
141141
ForwardDiff's `NaN`-safe mode by setting the `NANSAFE_MODE_ENABLED` constant to `true` in
142-
ForwardDiff's source.
142+
ForwardDiff's source. The constant is located in `src\prelude.jl`.
143143

144144
In the future, we plan on allowing users and downstream library authors to dynamically
145145
enable [NaN`-safe mode via the `AbstractConfig`

0 commit comments

Comments
 (0)