SelfAdjointEig

public final class SelfAdjointEig

Computes the eigen decomposition of one or more square self-adjoint matrices.

Computes the eigenvalues and (optionally) eigenvectors of each inner matrix in `input` such that `input[..., :, :] = v[..., :, :] * diag(e[..., :])`. The eigenvalues are sorted in non-decreasing order.

# a is a tensor.
 # e is a tensor of eigenvalues.
 # v is a tensor of eigenvectors.
 e, v = self_adjoint_eig(a)
 e = self_adjoint_eig(a, compute_v=False)
 

Nested Classes

class SelfAdjointEig.Options Optional attributes for SelfAdjointEig  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static SelfAdjointEig.Options
computeV(Boolean computeV)
static <T extends TType> SelfAdjointEig<T>
create(Scope scope, Operand<T> input, Options... options)
Factory method to create a class wrapping a new SelfAdjointEig operation.
Output<T>
e()
Eigenvalues.
Output<T>
v()
Eigenvectors.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "SelfAdjointEigV2"

Public Methods

public static SelfAdjointEig.Options computeV (Boolean computeV)

Parameters
computeV If `True` then eigenvectors will be computed and returned in `v`. Otherwise, only the eigenvalues will be computed.

public static SelfAdjointEig<T> create (Scope scope, Operand<T> input, Options... options)

Factory method to create a class wrapping a new SelfAdjointEig operation.

Parameters
scope current scope
input `Tensor` input of shape `[N, N]`.
options carries optional attributes values
Returns
  • a new instance of SelfAdjointEig

public Output<T> e ()

Eigenvalues. Shape is `[N]`.

public Output<T> v ()

Eigenvectors. Shape is `[N, N]`.