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
431 432 433 434 435 436 437 438 439 440 441 | |
matrix_power(x, n)
Computes the power of a matrix.
Source code in src/finch/interface/eager.py
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 | |
matrix_transpose(x)
Computes the transpose of a matrix or stack of matrices.
Source code in src/finch/interface/eager.py
444 445 446 447 448 449 450 | |
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
994 995 996 997 998 999 1000 1001 1002 1003 | |
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.
Source code in src/finch/interface/eager.py
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 | |