File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,9 @@ julia> GrB_Matrix_extractTuples(MAT)
452
452
"""
453
453
function GrB_Matrix_extractTuples (A:: GrB_Matrix{T} ) where T <: valid_types
454
454
nvals = GrB_Matrix_nvals (A)
455
+ if typeof (nvals) == GrB_Info
456
+ return nvals
457
+ end
455
458
U = typeof (nvals)
456
459
row_indices = Vector {U} (undef, nvals)
457
460
col_indices = Vector {U} (undef, nvals)
Original file line number Diff line number Diff line change @@ -410,6 +410,9 @@ julia> GrB_Vector_extractTuples(V)
410
410
"""
411
411
function GrB_Vector_extractTuples (v:: GrB_Vector{T} ) where T <: valid_types
412
412
nvals = GrB_Vector_nvals (v)
413
+ if typeof (nvals) == GrB_Info
414
+ return nvals
415
+ end
413
416
I = Vector {typeof(nvals)} (undef, nvals)
414
417
X = Vector {T} (undef, nvals)
415
418
n = Ref (UInt64 (nvals))
You can’t perform that action at this time.
0 commit comments