Skip to content

mmread() raises LoadError #112

Closed
Closed

Description

@alugowski

"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

Activity

  1. ViralBShah commented on Oct 27, 2026

    @ViralBShah
    Member

    Fixed: mmread now passes the dimensions positionally. Reading a 7x7 coordinate .mtx gives a 7x7 GBMatrix on 0.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions