imate.AffineMatrixFunction.get_density#

AffineMatrixFunction.get_density()#

Returns the density of non-zero elements of the matrix.

Returns:
densityfloat

The density of the nonzero elements of the sparse matrix. If the matrix is dense, the density is 1.