matmul¶
- matmul(arg0: amplify.PolyArray, arg1: amplify.PolyArray | ndarray[], /) Poly | PolyArray[Dim]¶
- matmul(arg0: ndarray[], arg1: amplify.PolyArray, /) Poly | PolyArray[Dim]
Matrix multiplication for polynomial arrays and NumPy arrays. matmul
If both operands are 2-D, perform matrix multiplication. If one operand is 1-D and the other is 2-D, perform vector-matrix or matrix-vector multiplication. If both operands are 1-D, perform dot product. If either operand is a 3-D array or higher, perform batched matrix multiplication.
Overload 1.
- Args:
arg0 (amplify.PolyArray)
arg1 (amplify.PolyArray | ndarray)
- Returns:
amplify.Poly | amplify.PolyArray[Dim]: Matrix multiplication result.
Overload 2.
- Args:
arg0 (ndarray)
arg1 (amplify.PolyArray)
- Returns:
amplify.Poly | amplify.PolyArray[Dim]: