Skip to content

Commit ccabdc3

Browse files
committed
added kwarg type
1 parent 2c0cb05 commit ccabdc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ this can be significant savings.
9393
The API for computing the color vector is:
9494

9595
```julia
96-
matrix_colors(A::AbstractMatrix,alg::ColoringAlgorithm = GreedyD1Color(); partition_by_rows = false)
96+
matrix_colors(A::AbstractMatrix,alg::ColoringAlgorithm = GreedyD1Color(); partition_by_rows::Bool = false)
9797
```
9898

9999
The first argument is the abstract matrix which represents the sparsity pattern

src/coloring/high_level.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct ContractionColor <: ColoringAlgorithm end
1111
The coloring defaults to a greedy distance-1 coloring.
1212
1313
"""
14-
function matrix_colors(A::AbstractMatrix,alg::ColoringAlgorithm = GreedyD1Color(); partition_by_rows = false)
14+
function matrix_colors(A::AbstractMatrix,alg::ColoringAlgorithm = GreedyD1Color(); partition_by_rows::Bool = false)
1515
_A = A isa SparseMatrixCSC ? A : sparse(A) # Avoid the copy
1616
A_graph = matrix2graph(_A, partition_by_rows)
1717
color_graph(A_graph,alg)

0 commit comments

Comments
 (0)