dot

dot(arg0: amplify.PolyArray, arg1: amplify.PolyArray | ndarray[], /) Poly | PolyArray[Dim]
dot(arg0: ndarray[], arg1: amplify.PolyArray, /) Poly | PolyArray[Dim]

Compute dot product for polynomial arrays and NumPy arrays. dot

Specifically, - If both operands are 1-D, perform an inner product and return a Poly. - If either operand is 0-D, perform element-wise multiplication. - If the left operand is 1-D or more and the right operand is 2-D or more, compute the product and sum over the last axis of the left operand and the second-to-last axis of the right operand. - If the right operand is 1-D, it is treated as a 2-D array with shape (N, 1).

Overload 1.

Args:
  • arg0 (amplify.PolyArray)

  • arg1 (amplify.PolyArray | ndarray)

Returns:

amplify.Poly | amplify.PolyArray[Dim]: Dot-product result.

Overload 2.

Args:
  • arg0 (ndarray)

  • arg1 (amplify.PolyArray)

Returns:

amplify.Poly | amplify.PolyArray[Dim]: Dot-product result.