LogMatrixDeterminant

public final class LogMatrixDeterminant

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>
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.

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "LogMatrixDeterminant"

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]`.

public Output<T> sign ()

The signs of the log determinants of the inputs. Shape is `[N]`.