linalg
matmul(x1, x2)
¶
Computes the matrix product.
Returns a LazyTensor if either x1 or x2 is a LazyTensor. Otherwise, computes the result eagerly.
Source code in src/finch/interface/eager.py
matrix_power(x, n)
¶
Computes the power of a matrix.
Source code in src/finch/interface/eager.py
matrix_transpose(x)
¶
Computes the transpose of a matrix or stack of matrices.
tensordot(x1, x2, /, *, axes=2)
¶
Computes the tensordot operation.
Returns a LazyTensor if either x1 or x2 is a LazyTensor. Otherwise, computes the result eagerly.
Source code in src/finch/interface/eager.py
vecdot(x1, x2, /, *, axis=-1)
¶
Computes the (vector) dot product of two arrays.
Parameters¶
x1: array The first input tensor. x2: array The second input tensor. axis: int, optional The axis along which to compute the dot product. Default is -1 (last axis).
Returns¶
out: array
A tensor containing the dot product of x1 and x2 along the specified axis.