File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,8 +264,9 @@ function show_colors!(
264264 A_ccolor_indices = mod1 .(column_colors (res), length (colorscheme))
265265 A_rcolor_indices = mod1 .(row_shift .+ row_colors (res), length (colorscheme))
266266 B_ccolor_indices = mod1 .(1 : maximum (column_colors (res)), length (colorscheme))
267- B_rcolor_indices =
268- mod1 .((row_shift + 1 ): (row_shift + maximum (row_colors (res))), length (colorscheme))
267+ B_rcolor_indices = mod1 .(
268+ (row_shift + 1 ): (row_shift + maximum (row_colors (res))), length (colorscheme)
269+ )
269270 A_ccolors = colorscheme[A_ccolor_indices]
270271 A_rcolors = colorscheme[A_rcolor_indices]
271272 B_ccolors = colorscheme[B_ccolor_indices]
Original file line number Diff line number Diff line change 9999
100100Return a [`SparsityPatternCSC`](@ref) corresponding to the matrix `[0 Aᵀ; A 0]`, with a minimum of allocations.
101101"""
102- bidirectional_pattern (A:: AbstractMatrix ; symmetric_pattern:: Bool ) =
102+ function bidirectional_pattern (A:: AbstractMatrix ; symmetric_pattern:: Bool )
103103 bidirectional_pattern (SparsityPatternCSC (SparseMatrixCSC (A)); symmetric_pattern)
104+ end
104105
105106function bidirectional_pattern (S:: SparsityPatternCSC{T} ; symmetric_pattern:: Bool ) where {T}
106107 m, n = size (S)
You can’t perform that action at this time.
0 commit comments