sparse#

AnsMath.sparse(mat, thresh='', **kwargs)#

Sparsify an existing matrix based on a threshold value.

Parameters:
matAnsMat

Dense matrix to convert to a sparse matrix.

threshfloat, optional

Numerical threshold value for sparsifying. The default value is 1E-16.