A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.jax.dev/en/latest/_autosummary/jax.numpy.linalg.eigvals.html below:

jax.numpy.linalg.eigvals — JAX documentation

jax.numpy.linalg.eigvals#
jax.numpy.linalg.eigvals(a)[source]#

Compute the eigenvalues of a general matrix.

JAX implementation of numpy.linalg.eigvals().

Parameters:

a (ArrayLike) – array of shape (..., M, M) for which to compute the eigenvalues.

Returns:

An array of shape (..., M) containing the eigenvalues.

Return type:

Array

Notes

Examples

>>> a = jnp.array([[1., 2.],
...                [2., 1.]])
>>> w = jnp.linalg.eigvals(a)
>>> with jnp.printoptions(precision=2):
...  w
Array([ 3.+0.j, -1.+0.j], dtype=complex64)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4