Polyadic/mtimes.m

From Spinach Documentation Wiki
Jump to: navigation, search

Performs polyadic-times-numeric multiplications.

Syntax

    c=mtimes(a,b)

Description

Storing matrices as polyadic arrays is very memory-efficient. This function allows to perform matrix-vector and matrix-matrix multiplications directly in the polyadic representation.

Arguments

    a,b  - a polyadic or a numerical array

Outputs

    c  - a polyadic or a numerical array

Notes

The following combinations are processed:

  polyadic, scalar    - multiply the first core by the scalar,
  scalar, polyadic      return a polyadic

  polyadic, matrix    - multiply the polyadic by the matrix,
  matrix, polyadic      return a matrix

  polyadic, polyadic  - this is discouraged, throw an error

See also

polyadic.m, polyadic/plus.m, polyadic/minus.m


Version 2.1, authors: Ilya Kuprov