bundles / scipy 1.17.1 / scipy / linalg / interpolative / estimate_spectral_norm_diff
function
scipy.linalg.interpolative:estimate_spectral_norm_diff
Signature
def estimate_spectral_norm_diff ( A , B , its = 20 , rng = None ) Summary
Estimate spectral norm of the difference of two matrices by the randomized power method.
Parameters
A: :class:`scipy.sparse.linalg.LinearOperator`First matrix given as a scipy.sparse.linalg.LinearOperator with the
matvecandrmatvecmethods (to apply the matrix and its adjoint).B: :class:`scipy.sparse.linalg.LinearOperator`Second matrix given as a scipy.sparse.linalg.LinearOperator with the
matvecandrmatvecmethods (to apply the matrix and its adjoint).its: int, optionalNumber of power method iterations.
rng: `numpy.random.Generator`, optionalPseudorandom number generator state. When
rngis None, a new numpy.random.Generator is created using entropy from the operating system. Types other than numpy.random.Generator are passed to numpy.random.default_rng to instantiate aGenerator. If rand isFalse, the argument is ignored.
Returns
: floatSpectral norm estimate of matrix difference.
Aliases
-
scipy.linalg.interpolative.estimate_spectral_norm_diff