官术网_书友最值得收藏!

Determinant

Determinant shows us information about the matrix that is helpful in linear equations and also helps in finding the inverse of a matrix.

For a given matrix X, the determinant is shown as follows:

The following example shows how to get a determinant using TensorFlow:

import tensorflow as tf
import numpy as np

x = np.array([[10.0, 15.0, 20.0], [0.0, 1.0, 5.0], [3.0, 5.0, 7.0]], dtype=np.float32)

det = tf.matrix_determinant(x)

with tf.Session() as sess:
print(sess.run(det))

The output of this is shown as follows:

-15.0
主站蜘蛛池模板: 定襄县| 石门县| 海原县| 皋兰县| 宁明县| 瓦房店市| 右玉县| 延川县| 东宁县| 翁源县| 辽中县| 资兴市| 剑川县| 房山区| 将乐县| 岳阳县| 黔西县| 周至县| 高台县| 和龙市| 周口市| 恩平市| 惠东县| 广平县| 桦南县| 介休市| 安西县| 柳州市| 双鸭山市| 扬州市| 元氏县| 澄城县| 丰顺县| 金山区| 霸州市| 千阳县| 瑞昌市| 互助| 阜城县| 佛山市| 平利县|