fips.Operator.__matmul__#

Operator.__matmul__(other)[source]#

Return the product with an operator or a vector, aligned by label.

Parameters:

other (Operator | Vector) – An operator whose rows, or a vector whose space, have exactly the labels of this operator’s columns, in any order.

Returns:

An operator on this one’s rows and other’s columns, in the cheapest form that is exact (fips.linalg), or a vector on this one’s rows.

Return type:

Operator | Vector

Raises:
  • TypeError – If other is an array: it has no labels to check. Multiply data by it to compute by position.

  • ValueError – If the labels do not match exactly.