T
- data type for e()
output@Operator(group="linalg") public final class SelfAdjointEig<T> extends PrimitiveOp
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)
Modifier and Type | Class and Description |
---|---|
static class |
SelfAdjointEig.Options
Optional attributes for
SelfAdjointEig |
operation
Modifier and Type | Method and Description |
---|---|
static SelfAdjointEig.Options |
computeV(Boolean computeV) |
static <T> SelfAdjointEig<T> |
create(Scope scope,
Operand<T> input,
SelfAdjointEig.Options... options)
Factory method to create a class wrapping a new SelfAdjointEig operation.
|
Output<T> |
e()
Eigenvalues.
|
Output<T> |
v()
Eigenvectors.
|
equals, hashCode, op, toString
public static <T> SelfAdjointEig<T> create(Scope scope, Operand<T> input, SelfAdjointEig.Options... options)
scope
- current scopeinput
- `Tensor` input of shape `[N, N]`.options
- carries optional attributes valuespublic static SelfAdjointEig.Options computeV(Boolean computeV)
computeV
- If `True` then eigenvectors will be computed and returned in `v`.
Otherwise, only the eigenvalues will be computed.Copyright © 2022. All rights reserved.