JuliaSparse / SuiteSparseGraphBLAS.jl

Sparse, General Linear Algebra for Graphs!
MIT License
102 stars 17 forks source link

mmread() raises LoadError #112

Open alugowski opened 1 year ago

alugowski commented 1 year ago

"A.mtx" is a simple coordinate matrix, loaded correctly by MatrixMarket.mmread().

using SuiteSparseGraphBLAS

SuiteSparseGraphBLAS.mmread("A.mtx")

result:

ERROR: LoadError: MethodError: no method matching GBMatrix(::Vector{Int64}, ::Vector{Int64}, ::Vector{Int64}; nrows=7, ncols=7)
Closest candidates are:
  GBMatrix(::AbstractVector, ::AbstractVector, ::AbstractVector{T}; combine, fill) where T at ~/.julia/packages/SuiteSparseGraphBLAS/hotIr/src/types.jl:431 got unsupported keyword arguments "nrows", "ncols"
  GBMatrix(::AbstractVector, ::AbstractVector, ::AbstractVector{T}, ::Any, ::Any; combine, fill) where T at ~/.julia/packages/SuiteSparseGraphBLAS/hotIr/src/types.jl:427 got unsupported keyword arguments "nrows", "ncols"
  GBMatrix(::AbstractVector, ::AbstractVector, ::T; fill) where T at ~/.julia/packages/SuiteSparseGraphBLAS/hotIr/src/types.jl:462 got unsupported keyword arguments "nrows", "ncols"
  ...
Stacktrace:
 [1] kwerr(::NamedTuple{(:nrows, :ncols), Tuple{Int64, Int64}}, ::Type, ::Vector{Int64}, ::Vector{Int64}, ::Vector{Int64})
   @ Base ./error.jl:165
 [2] (::SuiteSparseGraphBLAS.var"#563#565"{Bool, Bool})(mmfile::IOStream)
   @ SuiteSparseGraphBLAS ~/.julia/packages/SuiteSparseGraphBLAS/hotIr/src/mmread.jl:124
 [3] open(::SuiteSparseGraphBLAS.var"#563#565"{Bool, Bool}, ::String, ::Vararg{String}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Base ./io.jl:384
 [4] open
   @ ./io.jl:381 [inlined]
 [5] mmread (repeats 2 times)
   @ ~/.julia/packages/SuiteSparseGraphBLAS/hotIr/src/mmread.jl:58 [inlined]
 [6] top-level scope