Tensorflow.js tf.linalg.gramSchmidt() Function
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment.
The tf.linalg.gramSchmidt() function is used to orthogonalize the vectors using the Gram-Schimdt process.
tf.linalg.gramSchmidt( xs )
- xs ( a tf.Tensor1D array or tf.Tensor2D): These are the vectors that are to be orthogonalized.
Return Value: It returns a tf.Tensor1D array or tf.Tensor2D.
Tensor [[0.3939193, 0.919145 ], [0.919145 , -0.3939194]]
Tensor [[0.5661386, 0.792594 , 0.2264554], [0.1283516, -0.3561312, 0.925579 ], [-0.814256, 0.4949402 , 0.3033505]]