JuliaSparse / SuiteSparseGraphBLAS.jl

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

Can't create GBVector from values with fixed value type #78

Closed andreyz4k closed 2 years ago

andreyz4k commented 2 years ago
julia> B = GBVector([1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7])
7x1 GraphBLAS int64_t matrix, full by col
  7 entries, memory: 264 bytes

    (1,1)   1
    (2,1)   2
    (3,1)   3
    (4,1)   4
    (5,1)   5
    (6,1)   6
    (7,1)   7

julia> B = GBVector{Int}([1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7])
ERROR: MethodError: no method matching (GBVector{Int64})(::Vector{Int64}, ::Vector{Int64})
Closest candidates are:
  (GBVector{T})(::Any; fill) where T at ~/.julia/packages/SuiteSparseGraphBLAS/5AOj3/src/vector.jl:6
Stacktrace:
 [1] top-level scope
   @ REPL[28]:1
rayegun commented 2 years ago

Fixed by 187940abe6d8762ce549f88bd67ed6eae6ae29e6