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

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
主站蜘蛛池模板: 天等县| 永泰县| 中方县| 宝应县| 顺义区| 十堰市| 平遥县| 常宁市| 陇南市| 上蔡县| 怀远县| 哈尔滨市| 关岭| 夏津县| 民勤县| 四子王旗| 上饶县| 汉沽区| 萨迦县| 航空| 海安县| 濮阳市| 卫辉市| 仙桃市| 安岳县| 双柏县| 甘谷县| 津市市| 新乡县| 乌兰察布市| 高州市| 灵宝市| 临邑县| 安化县| 镇赉县| 那曲县| 普兰县| 葵青区| 浦城县| 新昌县| 香河县|