bundles / scipy 1.17.1 / scipy / linalg / _solvers / _are_validate_args
function
scipy.linalg._solvers:_are_validate_args
source: /scipy/linalg/_solvers.py :776
Signature
def _are_validate_args ( a , b , q , r , e , s , eq_type = care ) Summary
A helper function to validate the arguments supplied to the Riccati equation solvers. Any discrepancy found in the input matrices leads to a ValueError exception.
Extended Summary
Essentially, it performs:
a check whether the input is free of NaN and Infs
a pass for the data through
numpy.atleast_2d()squareness check of the relevant arrays
shape consistency check of the arrays
singularity check of the relevant arrays
symmetricity check of the relevant matrices
a check whether the regular or the generalized version is asked.
This function is used by solve_continuous_are and solve_discrete_are.
Parameters
a, b, q, r, e, s: array_likeInput data
eq_type: strAccepted arguments are 'care' and 'dare'.
Returns
a, b, q, r, e, s: ndarrayRegularized input data
m, n: intshape of the problem
r_or_c: typeData type of the problem, returns float or complex
gen_or_not: boolType of the equation, True for generalized and False for regular ARE.
Aliases
-
scipy.linalg._solvers._are_validate_args