November 2017
Intermediate to advanced
274 pages
6h 16m
English
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 tfimport numpy as npx = 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
Read now
Unlock full access