SciPy

scipy.sparse.dia_matrix.power

dia_matrix.power(self, n, dtype=None)[source]

This function performs element-wise power.

Parameters
nn is a scalar
dtypeIf dtype is not specified, the current dtype will be preserved.

Previous topic

scipy.sparse.dia_matrix.nonzero

Next topic

scipy.sparse.dia_matrix.rad2deg