Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@andreyz4k

Description

@andreyz4k
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

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