Math and algorithms
Miscellaneous math and algorithm code
Matrix functions
matrix_power
matrix_power (x:torch.Tensor, p:float)
Power of a matrix using Eigenspace Decomposition. Assuming decomposition of x
exists.
Algorithms
gram_schmidt
gram_schmidt (X:torch.Tensor)
Perform Gram–Schmidt orthonormalization on the vectors given by the rows of matrix X.