sfsparsify (4.0)
index
user/ivlad/Msparsify.c
Transforms regular 2-D array to sparse array

 
Synopsis
        sfsparsify < in.rsf > out.rsf nonzero=n1*n2
Input is int or float array
Output is a float nonzero-by-3 array, where
nonzero=` column 0 holds the data values (converted from int to float, if necessary),
column 1 holds coordinate values (i.e. o+i*d, not indices i) for dimension
1 of input, and column 2 the coordinate values for dimension 2 of input

 
Parameters
       
 
int nonzero=n1*n2
Number of nonzero elements in input