T - data type for sign() output@Operator 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 to wrap a new LogMatrixDeterminant operation to the graph.
|
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, toStringpublic static <T> LogMatrixDeterminant<T> create(Scope scope, Operand<T> input)
scope - current graph scopeinput - Shape is `[N, M, M]`.Copyright © 2015–2019. All rights reserved.