tfp.substrates.numpy.math.hpsd_logdet
Stay organized with collections
Save and categorize content based on your preferences.
Computes log|det(matrix)|
, where matrix
is a HPSD matrix.
tfp.substrates.numpy.math.hpsd_logdet(
matrix, cholesky_matrix=None
)
Given matrix
computes log|det(matrix)|
, where matrix
is Hermitian
positive Semi-definite matrix.
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 .
|
Returns |
hpsd_logdet
|
Scalar Tensor , retaining the batch shape of matrix .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-21 UTC.
[null,null,["Last updated 2023-11-21 UTC."],[],[],null,["# tfp.substrates.numpy.math.hpsd_logdet\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/probability/blob/v0.23.0/tensorflow_probability/substrates/numpy/math/linalg.py#L1270-L1289) |\n\nComputes `log|det(matrix)|`, where `matrix` is a HPSD matrix.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tfp.experimental.substrates.numpy.math.hpsd_logdet`](https://www.tensorflow.org/probability/api_docs/python/tfp/substrates/numpy/math/hpsd_logdet)\n\n\u003cbr /\u003e\n\n tfp.substrates.numpy.math.hpsd_logdet(\n matrix, cholesky_matrix=None\n )\n\nGiven `matrix` computes `log|det(matrix)|`, where `matrix` is Hermitian\npositive Semi-definite matrix.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|----------------------------------------------------------------------------------------------------------|\n| `matrix` | Floating-point `Tensor` of shape `[..., N, N]`. Represents a Hermitian positive semi-definite matrix. |\n| `cholesky_matrix` | (Optional) Floating-point `Tensor` of shape `[..., N, N]` that represents a Cholesky factor of `matrix`. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---------------|---------------------------------------------------------|\n| `hpsd_logdet` | Scalar `Tensor`, retaining the batch shape of `matrix`. |\n\n\u003cbr /\u003e"]]