jax.lax.linalg.eig#
- jax.lax.linalg.eig(x, *, compute_left_eigenvectors=True, compute_right_eigenvectors=True)[source]#
Eigendecomposition of a general matrix.
Nonsymmetric eigendecomposition is at present only implemented on CPU.
- Parameters:
- Return type:
- Returns:
The eigendecomposition of
x, which is a tuple of the form(w, vl, vr)whereware the eigenvalues,vlare the left eigenvectors, andvrare the right eigenvectors.vlandvrare optional and will only be included ifcompute_left_eigenvectorsorcompute_right_eigenvectorsrespectively areTrue.If the eigendecomposition fails, then arrays full of NaNs will be returned for that batch element.