SuiteSparseGraphBLAS.jl icon indicating copy to clipboard operation
SuiteSparseGraphBLAS.jl copied to clipboard

mmread() raises LoadError

Open alugowski opened this issue 1 year ago • 0 comments

"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

alugowski avatar Jan 21 '23 20:01 alugowski