@@ -22,7 +22,7 @@ function SparseADHessian(
2222 ncon,
2323 c!;
2424 x0:: AbstractVector = rand(nvar),
25- coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
25+ coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(decompression_uplo = :L ),
2626 detector:: AbstractSparsityDetector = TracerSparsityDetector(),
2727 show_time:: Bool = false ,
2828 kwargs... ,
@@ -41,7 +41,7 @@ function SparseADHessian(
4141 c!,
4242 H:: SparseMatrixCSC{Bool, Int64} ;
4343 x0:: S = rand(nvar),
44- coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
44+ coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(decompression_uplo = :L ),
4545 show_time:: Bool = false ,
4646 kwargs... ,
4747) where {S}
@@ -143,7 +143,7 @@ function SparseReverseADHessian(
143143 ncon,
144144 c!;
145145 x0:: AbstractVector = rand(nvar),
146- coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
146+ coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(decompression_uplo = :L ),
147147 detector:: AbstractSparsityDetector = TracerSparsityDetector(),
148148 show_time:: Bool = false ,
149149 kwargs... ,
@@ -162,7 +162,7 @@ function SparseReverseADHessian(
162162 c!,
163163 H:: SparseMatrixCSC{Bool, Int} ;
164164 x0:: AbstractVector{T} = rand(nvar),
165- coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
165+ coloring_algorithm:: AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(decompression_uplo = :L ),
166166 show_time:: Bool = false ,
167167 kwargs... ,
168168) where {T}
@@ -307,11 +307,11 @@ function sparse_hess_coord!(
307307 compressed_hessian_icol .= view(b. Hvp, (ncon + 1 ): (ncon + b. nvar))
308308 if b. coloring_mode == :direct
309309 # Update the coefficients of the lower triangular part of the Hessian that are related to the color `icol`
310- decompress_single_color!(A, compressed_hessian_icol, icol, b. result_coloring, :L )
310+ decompress_single_color!(A, compressed_hessian_icol, icol, b. result_coloring)
311311 end
312312 end
313313 if b. coloring_mode == :substitution
314- decompress!(A, b. compressed_hessian, b. result_coloring, :L )
314+ decompress!(A, b. compressed_hessian, b. result_coloring)
315315 end
316316 vals .= b. nzval
317317 return vals
@@ -354,11 +354,11 @@ function sparse_hess_coord!(
354354
355355 if b. coloring_mode == :direct
356356 # Update the coefficients of the lower triangular part of the Hessian that are related to the color `icol`
357- decompress_single_color!(A, compressed_hessian_icol, icol, b. result_coloring, :L )
357+ decompress_single_color!(A, compressed_hessian_icol, icol, b. result_coloring)
358358 end
359359 end
360360 if b. coloring_mode == :substitution
361- decompress!(A, b. compressed_hessian, b. result_coloring, :L )
361+ decompress!(A, b. compressed_hessian, b. result_coloring)
362362 end
363363 vals .= b. nzval
364364 return vals
0 commit comments