SpaceTest.multiply

SpaceTest.multiply()[source]

Verify LinearSpace.multiply.

The vector multiplication is checked for the following properties:

  • Zero element:

    0 * x = 0

  • Commutativity:

    x * y = y * x

  • Associativity:

    x * (y * z) = (x * y) * z

  • Distributivity:

    a * (x + y) = a * x + a * y

    x * (y + z) = x * y + x * z