{ } Raw JSON

bundles / scipy 1.17.1 / scipy / sparse / linalg / _expm_multiply / _compute_cost_div_m

function

scipy.sparse.linalg._expm_multiply:_compute_cost_div_m

source: /scipy/sparse/linalg/_expm_multiply.py :460

Signature

def   _compute_cost_div_m ( m p norm_info )

Summary

A helper function for computing bounds.

Extended Summary

This is equation (3.10). It measures cost in terms of the number of required matrix products.

Parameters

m : int

A valid key of _theta.

p : int

A matrix power.

norm_info : LazyOperatorNormInfo

Information about 1-norms of related operators.

Returns

cost_div_m : int

Required number of matrix products divided by m.

Aliases

  • scipy.sparse.linalg._expm_multiply._compute_cost_div_m