Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 639a567

Browse files
Merge pull request #97 from matbesancon/defaultrow
Default row argument for graph creation, removing debug lines
2 parents a87658a + dbde793 commit 639a567

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ os:
55
- osx
66
julia:
77
- 1.3
8+
- 1.4
89
- nightly
910
matrix:
1011
allow_failures:

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
1010
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1111
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
1212
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
13-
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1413
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
1514
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1615
Requires = "ae029012-a4dd-5104-9daa-d747884805df"

src/coloring/matrix2graph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
2-
matrix2graph(sparse_matrix)
2+
matrix2graph(sparse_matrix, [partition_by_rows::Bool=true])
33
44
A utility function to generate a graph from input
55
sparse matrix, columns are represented with vertices
66
and 2 vertices are connected with an edge only if
77
the two columns are mutually orthogonal.
88
"""
9-
function matrix2graph(sparse_matrix::SparseMatrixCSC{<:Number, Int}, partition_by_rows::Bool)
9+
function matrix2graph(sparse_matrix::SparseMatrixCSC{<:Number, Int}, partition_by_rows::Bool=true)
1010

1111
dropzeros!(sparse_matrix)
1212
(rows_index, cols_index, _) = findnz(sparse_matrix)

test/test_ad.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using SparseArrays, Test
44
using LinearAlgebra
55
using BlockBandedMatrices
66
using StaticArrays
7-
using InteractiveUtils: @which
87

98
fcalls = 0
109
function f(dx,x)
@@ -119,7 +118,6 @@ _J1 = forwarddiff_color_jacobian(oopf, x, colorvec = repeat(1:3,10), sparsity =
119118
@info "4th passed"
120119

121120
fcalls = 0
122-
@info "which $(@which forwarddiff_color_jacobian(staticf, SVector{30}(x), colorvec = repeat(1:3,10), sparsity = _J, jac_prototype = SMatrix{30,30}(_J)))"
123121
_J1 = forwarddiff_color_jacobian(staticf, SVector{30}(x), colorvec = repeat(1:3,10), sparsity = _J, jac_prototype = SMatrix{30,30}(_J))
124122
@test _J1 J
125123
@test fcalls == 1

0 commit comments

Comments
 (0)