File: GB_sparsity.m

package info (click to toggle)
suitesparse-graphblas 7.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 67,112 kB
  • sloc: ansic: 1,072,243; cpp: 8,081; sh: 512; makefile: 503; asm: 369; python: 125; awk: 10
file content (13 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
function s = GB_sparsity (d)
%s = GB_sparsity (d) returns a string describing the sparsity

if (d == 1)
    s = 'hypersparse' ;
elseif (d == 2)
    s = 'sparse' ;
elseif (d == 4)
    s = 'bitmap' ;
elseif (d == 8)
    s = 'full' ;
end