T
- data type for sign()
output@Operator(group="linalg") public final class LogMatrixDeterminant<T> extends PrimitiveOp
one or more square matrices.
The input is a tensor of shape `[N, M, M]` whose inner-most 2 dimensions form square matrices. The outputs are two tensors containing the signs and absolute values of the log determinants for all N input submatrices `[..., :, :]` such that the determinant = sign*exp(log_abs_determinant). The log_abs_determinant is computed as det(P)*sum(log(diag(LU))) where LU is the LU decomposition of the input and P is the corresponding permutation matrix.
operation
Modifier and Type | Method and Description |
---|---|
static <T> LogMatrixDeterminant<T> |
create(Scope scope,
Operand<T> input)
Factory method to create a class wrapping a new LogMatrixDeterminant operation.
|
Output<T> |
logAbsDeterminant()
The logs of the absolute values of the determinants
of the N input matrices.
|
Output<T> |
sign()
The signs of the log determinants of the inputs.
|
equals, hashCode, op, toString
public static <T> LogMatrixDeterminant<T> create(Scope scope, Operand<T> input)
scope
- current scopeinput
- Shape is `[N, M, M]`.Copyright © 2022. All rights reserved.