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

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
主站蜘蛛池模板: 南丹县| 石嘴山市| 楚雄市| 睢宁县| 汉阴县| 曲阳县| 天津市| 乌拉特后旗| 沂源县| 灵台县| 佛冈县| 阜新市| 荥经县| 光泽县| 朝阳区| 楚雄市| 卢湾区| 晋宁县| 乌鲁木齐市| 洪湖市| 舒兰市| 永嘉县| 南城县| 永仁县| 启东市| 望奎县| 平阴县| 沂源县| 永泰县| 会昌县| 兰溪市| 石狮市| 满洲里市| 博罗县| 屯昌县| 云安县| 望城县| 黄梅县| 瑞昌市| 玉溪市| 蒙山县|