tf.linalg.logdet
| Просмотр исходного кода на GitHub |
Вычисляет логарифм определителя эрмитовой положительно определенной матрицы.
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 | Матрица. Должна быть float16, float32, float64, complex64, или complex128 с формой [..., M, M]. |
name | Имя для данного объекта. По умолчанию logdet. |
| Возвращаемое значение | |
|---|---|
Естественный логарифм определителя matrix. |
Совместимость с Numpy
Эквивалентно numpy.linalg.slogdet, хотя знак не возвращается, поскольку поддерживаются только эрмитовы положительно определенные матрицы.
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/linalg/logdet