Skip to content

Commit fd497cf

Browse files
committed
🤖 Format .jl files
1 parent 1a166ad commit fd497cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/sparse_hessian.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ struct SparseADHessian{Tag, GT, S, T} <: ADNLPModels.ADBackend
44
colptr::Vector{Int}
55
colors::Vector{Int}
66
ncolors::Int
7-
dcolors::Dict{Int, Vector{Tuple{Int,Int}}}
7+
dcolors::Dict{Int, Vector{Tuple{Int, Int}}}
88
res::S
99
lz::Vector{ForwardDiff.Dual{Tag, T, 1}}
1010
glz::Vector{ForwardDiff.Dual{Tag, T, 1}}
@@ -92,7 +92,7 @@ struct SparseReverseADHessian{T, S, Tagf, F, Tagψ, P} <: ADNLPModels.ADBackend
9292
colptr::Vector{Int}
9393
colors::Vector{Int}
9494
ncolors::Int
95-
dcolors::Dict{Int, Vector{Tuple{Int,Int}}}
95+
dcolors::Dict{Int, Vector{Tuple{Int, Int}}}
9696
res::S
9797
z::Vector{ForwardDiff.Dual{Tagf, T, 1}}
9898
gz::Vector{ForwardDiff.Dual{Tagf, T, 1}}

src/sparsity_pattern.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ function nnz_colors(trilH, star_set, colors, ncolors)
7272
# We want to determine the coefficients in `trilH` that will be computed by a given color.
7373
# Because we exploit the symmetry, we also need to store the row index for a given coefficient
7474
# in the "compressed column".
75-
dcolors = Dict(i => Tuple{Int,Int}[] for i=1:ncolors)
75+
dcolors = Dict(i => Tuple{Int, Int}[] for i = 1:ncolors)
7676

7777
n = LinearAlgebra.checksquare(trilH)
78-
for j in 1:n
79-
for k in trilH.colptr[j]:trilH.colptr[j+1]-1
78+
for j = 1:n
79+
for k = trilH.colptr[j]:(trilH.colptr[j + 1] - 1)
8080
i = trilH.rowval[k]
8181
l, c = symmetric_coefficient(i, j, colors, star_set)
8282
push!(dcolors[c], (l, k))

0 commit comments

Comments
 (0)