cupy.linalg.cond#
- cupy.linalg.cond(x, p=None)[source]#
Returns the condition number of a matrix.
This function computes the condition number using one of several norms, depending on the value of p.
- Parameters:
x (cupy.ndarray) β The matrix whose condition number is computed.
The norm type used. The following norms are supported:
None: 2-norm
βfroβ: Frobenius norm.
inf: max(sum(abs(x), axis=1)).
-inf: min(sum(abs(x), axis=1)).
1: max(sum(abs(x), axis=0)).
-1: min(sum(abs(x), axis=0)).
2: 2-norm (largest singular value).
-2: smallest singular value.
- Returns:
The condition number of the matrix. May be infinite.
- Return type: