<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/math/linalg.py#L1270-L1289) |

Computes `log|det(matrix)|`, where `matrix` is a HPSD matrix.

    tfp.math.hpsd_logdet(
        matrix, cholesky_matrix=None
    )

Given `matrix` computes `log|det(matrix)|`, where `matrix` is Hermitian
positive Semi-definite matrix.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `matrix` | Floating-point `Tensor` of shape `[..., N, N]`. Represents a Hermitian positive semi-definite matrix. |
| `cholesky_matrix` | (Optional) Floating-point `Tensor` of shape `[..., N, N]` that represents a Cholesky factor of `matrix`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `hpsd_logdet` | Scalar `Tensor`, retaining the batch shape of `matrix`. |

<br />