sparse

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

Sparsify a existing matrix based on a threshold value.

Parameters
  • mat (ansys.mapdl.core.math.AnsMat) – The dense matrix to convert to a sparse matrix.

  • thresh (float, optional) – Numerical threshold value used to sparsify. The default value is 1E-16.