Skip to content

Commit b3bf3c0

Browse files
committed
Use the formatter
1 parent 636aeca commit b3bf3c0

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/check.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ It is equivalent to an __acyclic coloring__.
291291
> [_What Color Is Your Jacobian? Graph Coloring for Computing Derivatives_](https://epubs.siam.org/doi/10.1137/S0036144504444711), Gebremedhin et al. (2005)
292292
"""
293293
function substitutable_columns(
294-
A::AbstractMatrix, order_nonzeros::AbstractMatrix, color::AbstractVector{<:Integer}; verbose::Bool=false
294+
A::AbstractMatrix,
295+
order_nonzeros::AbstractMatrix,
296+
color::AbstractVector{<:Integer};
297+
verbose::Bool=false,
295298
)
296299
checksquare(A)
297300
if !proper_length_coloring(A, color; verbose)
@@ -319,8 +322,9 @@ function _substitutable_check(
319322
cj::Integer,
320323
row_group::AbstractVector,
321324
column_group::AbstractVector,
322-
verbose::Bool)
323-
order_ij = order_nonzeros[i,j]
325+
verbose::Bool,
326+
)
327+
order_ij = order_nonzeros[i, j]
324328
k_row = 0
325329
k_column = 0
326330
if ci != 0

test/check.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ end
223223
1 1 1 1 0
224224
]
225225
B3 = [
226-
0 1 2 3 4
227-
1 0 5 6 7
228-
2 5 0 8 9
226+
0 1 2 3 4
227+
1 0 5 6 7
228+
2 5 0 8 9
229229
3 6 8 0 10
230230
4 7 9 10 0
231231
]

0 commit comments

Comments
 (0)