File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 7
7
module ReverseAD
8
8
9
9
import ForwardDiff
10
- import MutableArithmetics as MA
11
10
import MathOptInterface as MOI
12
11
import .. Nonlinear
13
12
import SparseArrays
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ function _eval_hessian_chunk(
97
97
chunk:: Int ,
98
98
:: Val{CHUNK} ,
99
99
) where {CHUNK}
100
- MA. operate! (zero, d. input_ϵ)
101
100
for r in eachindex (ex. rinfo. local_indices)
102
101
# set up directional derivatives
103
102
@inbounds idx = ex. rinfo. local_indices[r]
@@ -107,8 +106,9 @@ function _eval_hessian_chunk(
107
106
d. input_ϵ[(idx- 1 )* CHUNK+ s] = ex. seed_matrix[r, offset+ s- 1 ]
108
107
end
109
108
end
110
- MA . operate! (zero, d. output_ϵ)
109
+ fill! ( d. output_ϵ, 0.0 )
111
110
_hessian_slice_inner (d, ex, Val (CHUNK))
111
+ fill! (d. input_ϵ, 0.0 )
112
112
# collect directional derivatives
113
113
for r in eachindex (ex. rinfo. local_indices)
114
114
@inbounds idx = ex. rinfo. local_indices[r]
You can’t perform that action at this time.
0 commit comments