Skip to content

Commit a1a7d20

Browse files
committed
fix cmember on amd.jl ccolamd
1 parent 85f3e25 commit a1a7d20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/IncrInfrApproxMinDegreeExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function _ccolamd!(
7171
A::AbstractVector{T1}, #SuiteSparse_long},
7272
p::AbstractVector{<:Real}, # {SuiteSparse_long},
7373
cmember::Union{Ptr{Nothing}, <:AbstractVector{T}}, # SuiteSparse_long
74-
) where {T1<:Real, T}
74+
) where {T1<:Real, T<:Integer}
7575
n_col = length(p) - 1
7676

7777
if length(cmember) != n_col

src/services/BayesNet.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function getEliminationOrder(
4343
q, r, p = qr(A, (v"1.7" <= VERSION ? ColumnNorm() : Val(true)))
4444
p .= p |> reverse
4545
elseif ordering == :ccolamd
46-
cons = zeros(length(adjMat.colptr) - 1)
46+
cons = zeros(Int, length(adjMat.colptr) - 1)
4747
cons[findall(x -> x in constraints, permuteds)] .= 1
4848
p = _ccolamd(adjMat, cons)
4949
# cons = zeros(SuiteSparse_long, length(adjMat.colptr) - 1)
5050
# cons[findall(x -> x in constraints, permuteds)] .= 1
5151
# p = Ccolamd.ccolamd(adjMat, cons)
52-
@warn "Integration via AMD.ccolamd under development and replaces pre-Julia 1.9 direct ccall approach."
52+
@warn "Integration via AMD.ccolamd under development and replaces pre-Julia 1.9 direct ccall approach." maxlog=5
5353
else
5454
@error("getEliminationOrder -- cannot do the requested ordering $(ordering)")
5555
end

0 commit comments

Comments
 (0)