- Neural Network Programming with TensorFlow
- Manpreet Singh Ghotra Rajdeep Dua
- 83字
- 2021-07-02 15:17:10
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
推薦閱讀
- PyTorch深度學習實戰:從新手小白到數據科學家
- SQL Server 2008數據庫應用技術(第二版)
- Modern Programming: Object Oriented Programming and Best Practices
- Libgdx Cross/platform Game Development Cookbook
- Mockito Cookbook
- Spark核心技術與高級應用
- 大話Oracle Grid:云時代的RAC
- 深入淺出Greenplum分布式數據庫:原理、架構和代碼分析
- 區塊鏈技術應用與實踐案例
- 聯動Oracle:設計思想、架構實現與AWR報告
- Unreal Engine Virtual Reality Quick Start Guide
- 數據指標體系:構建方法與應用實踐
- Access 2016數據庫應用基礎
- 標簽類目體系:面向業務的數據資產設計方法論
- 領域驅動設計精粹