sparse

MapdlMath.sparse(mat, thresh='', **kwargs)

Sparsify a existing matrix based on a threshold value.

Parameters
matansys.mapdl.core.math.AnsMat

The dense matrix to convert to a sparse matrix.

threshfloat, optional

Numerical threshold value used to sparsify. The default value is 1E-16.