Skip to content

spfun

sparse · scripts/sparse/spfun.m

F = spfun (fun, S)  --  apply an elementwise function to the nonzero
elements of S only.  fun is called once, with the column of nonzeros.