Skip to content

Commit 79af9b5

Browse files
committed
Fixes
1 parent 06ed8bc commit 79af9b5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/graph_tools.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Compute the sparsity pattern of the gradient of an expression (that is, a list o
159159
which variable indices are present).
160160
"""
161161
function _compute_gradient_sparsity!(
162-
indices::IndexedSet,
162+
indices::MOI.Nonlinear.ReverseAD.Coloring.IndexedSet,
163163
nodes::Vector{Nonlinear.Node},
164164
)
165165
for node in nodes
@@ -207,7 +207,7 @@ function _compute_hessian_sparsity(
207207
nodes::Vector{Nonlinear.Node},
208208
adj,
209209
input_linearity::Vector{Linearity},
210-
indexedset::IndexedSet,
210+
indexedset::MOI.Nonlinear.ReverseAD.Coloring.IndexedSet,
211211
subexpression_edgelist::Vector{Set{Tuple{Int,Int}}},
212212
subexpression_variables::Vector{Vector{Int}},
213213
)

src/mathoptinterface_api.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function MOI.initialize(
4545
d.last_x = fill(NaN, N)
4646
d.want_hess = :Hess in requested_features
4747
want_hess_storage = (:HessVec in requested_features) || d.want_hess
48-
coloring_storage = IndexedSet(N)
48+
coloring_storage = MOI.Nonlinear.ReverseAD.Coloring.IndexedSet(N)
4949
max_expr_length = 0
5050
max_expr_with_sub_length = 0
5151
#

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct _FunctionStorage{R<:SparseMatrixColorings.AbstractColoringResult}
7777
function _FunctionStorage{R}(
7878
expr::_SubexpressionStorage,
7979
num_variables,
80-
coloring_storage::IndexedSet,
80+
coloring_storage::MOI.Nonlinear.ReverseAD.Coloring.IndexedSet,
8181
coloring_algorithm::Union{
8282
Nothing,
8383
SparseMatrixColorings.GreedyColoringAlgorithm,

0 commit comments

Comments
 (0)