Computes the sign and the log of the absolute value of the determinant of
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 `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.
Constants
String | OP_NAME | The name of this op, as known by TensorFlow core engine |
Public Methods
static <T extends TType> LogMatrixDeterminant<T> | |
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.
|
Inherited Methods
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract ExecutionEnvironment |
env()
Return the execution environment this op was created in.
|
abstract Operation |
Constants
public static final String OP_NAME
The name of this op, as known by TensorFlow core engine
Public Methods
public static LogMatrixDeterminant<T> create (Scope scope, Operand<T> input)
Factory method to create a class wrapping a new LogMatrixDeterminant operation.
Parameters
scope | current scope |
---|---|
input | Shape is `[N, M, M]`. |
Returns
- a new instance of LogMatrixDeterminant
public Output<T> logAbsDeterminant ()
The logs of the absolute values of the determinants of the N input matrices. Shape is `[N]`.