JuliaSparse / SuiteSparseGraphBLAS.jl

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

assign! is not working with GBMatrix #76

Closed andreyz4k closed 2 years ago

andreyz4k commented 2 years ago
julia> A = GBMatrix([1,1,2,2,3,4,4,5,6,7,7,7], [2,4,5,7,6,1,3,6,3,3,4,5], [1:12...])
7x7 GraphBLAS int64_t matrix, bitmap by row
  12 entries, memory: 649 bytes

    (1,2)   1
    (1,4)   2
    (2,5)   3
    (2,7)   4
    (3,6)   5
    (4,1)   6
    (4,3)   7
    (5,6)   8
    (6,3)   9
    (7,3)   10
    (7,4)   11
    (7,5)   12

julia> assign!(A, A, :, :)
ERROR: UndefVarError: T not defined
Stacktrace:
 [1] assign!(C::GBMatrix{Int64, Nothing}, x::GBMatrix{Int64, Nothing}, I::Function, J::Function; mask::Nothing, accum::Nothing, desc::Nothing)
   @ SuiteSparseGraphBLAS ~/.julia/packages/SuiteSparseGraphBLAS/5AOj3/src/abstractgbarray.jl:430
 [2] assign!(C::GBMatrix{Int64, Nothing}, x::GBMatrix{Int64, Nothing}, I::Function, J::Function)
   @ SuiteSparseGraphBLAS ~/.julia/packages/SuiteSparseGraphBLAS/5AOj3/src/abstractgbarray.jl:430
 [3] top-level scope
   @ REPL[12]:1