Linear Algebra#

This module provides NumPy-like linear algebra math functions.

det(A)

Determinant of a 2x2 or 3x3 Tensor.

eigh(A[, eps])

Eigenvalues and -bases of a symmetric Tensor.

eigvalsh(A[, eps])

Eigenvalues of a symmetric Tensor.

expm(A)

Compute the matrix exponential of a symmetric array.

inv(A[, inverse])

Inverse of a 2x2 or 3x3 Tensor.

pinv(A)

Pseudo-Inverse of a 2x2 or 3x3 Tensor.

sqrtm(A)

Compute the matrix square root of a symmetric array.

Detailed API Reference

tensortrax.math.linalg.det(A)[source]#

Determinant of a 2x2 or 3x3 Tensor.

tensortrax.math.linalg.eigh(A, eps=np.float64(1.4901161193847656e-08))[source]#

Eigenvalues and -bases of a symmetric Tensor.

tensortrax.math.linalg.eigvalsh(A, eps=np.float64(1.4901161193847656e-08))[source]#

Eigenvalues of a symmetric Tensor.

tensortrax.math.linalg.expm(A)[source]#

Compute the matrix exponential of a symmetric array.

tensortrax.math.linalg.inv(A, inverse=<function inv>)[source]#

Inverse of a 2x2 or 3x3 Tensor.

tensortrax.math.linalg.pinv(A)[source]#

Pseudo-Inverse of a 2x2 or 3x3 Tensor.

tensortrax.math.linalg.sqrtm(A)[source]#

Compute the matrix square root of a symmetric array.