tf.linalg.logdet
Вычисляет логарифм определителя эрмитовой положительно определённой матрицы.
tf.linalg.logdet(
matrix, name=None
)
# Compute the determinant of a matrix while reducing the chance of over- or underflow: A = ... # shape 10 x 10 det = tf.exp(tf.linalg.logdet(A)) # scalar
| Аргументы | |
|---|---|
matrix | Tensor. Должен иметь тип float16, float32, float64, complex64 или complex128 и форму [..., M, M]. |
name | Имя для этого Op. По умолчанию — logdet. |
| Возвращает | |
|---|---|
Натуральный логарифм определителя matrix. |
Совместимость с numpy
Эквивалентно numpy.linalg.slogdet, однако знак не возвращается, поскольку поддерживаются только эрмитовы положительно определённые матрицы.
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/linalg/logdet