You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DifferentiationInterface/docs/src/explanation/advanced.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,16 @@ AutoSparse(
86
86
)
87
87
```
88
88
89
-
At the moment, mixed mode tends to work best when the [`GreedyColoringAlgorithm`](@extref SparseMatrixColorings.GreedyColoringAlgorithm) is provided with a [`RandomOrder`](@extref SparseMatrixColorings.RandomOrder) instead of the usual [`NaturalOrder`](@extref SparseMatrixColorings.NaturalOrder).
89
+
At the moment, mixed mode tends to work best (output fewer colors) when the [`GreedyColoringAlgorithm`](@extref SparseMatrixColorings.GreedyColoringAlgorithm) is provided with a [`RandomOrder`](@extref SparseMatrixColorings.RandomOrder) instead of the usual [`NaturalOrder`](@extref SparseMatrixColorings.NaturalOrder), and when "post-processing" is activated after coloring.
90
+
For full reproducibility, you should use a random number generator from [StableRNGs.jl](https://github.com/JuliaRandom/StableRNGs.jl).
Copy file name to clipboardExpand all lines: DifferentiationInterface/docs/src/explanation/operators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,4 +152,4 @@ For same-point preparation, the same rules hold with two modifications:
152
152
153
153
!!! warning
154
154
These rules hold for the majority of backends, but there are some exceptions.
155
-
The most important exception is [ReverseDiff](@ref) and its taping mechanism, which is sensitive to control flow inside the function.
155
+
The most important exception is [ReverseDiff.jl](https://github.com/JuliaDiff/ReverseDiff.jl) and its taping mechanism, which is sensitive to control flow inside the function.
Copy file name to clipboardExpand all lines: DifferentiationInterface/ext/DifferentiationInterfaceGPUArraysCoreExt/DifferentiationInterfaceGPUArraysCoreExt.jl
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,14 @@ using GPUArraysCore: @allowscalar, AbstractGPUArray
6
6
function DI.basis(a::AbstractGPUArray{T}, i) where {T}
7
7
b =similar(a)
8
8
fill!(b, zero(T))
9
-
@allowscalar b[i] =one(T)
9
+
@allowscalar b[i] =oneunit(T)
10
10
return b
11
11
end
12
12
13
13
function DI.multibasis(a::AbstractGPUArray{T}, inds) where {T}
0 commit comments