polyadic/mtimes.m

From Spinach Documentation Wiki
Jump to: navigation, search

Performs polyadic-times-numeric multiplication, allowing matrix-vector and matrix-matrix products to be evaluated directly in the memory-efficient polyadic representation.

Syntax

    c=mtimes(a,b)

Parameters

    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, polinfo.m, polyadic/allfinite.m, polyadic/ctranspose.m, polyadic/full.m, polyadic/gpuArray.m, polyadic/inflate.m, polyadic/isempty.m, polyadic/kron.m, polyadic/nnz.m, polyadic/polinfo.m, polyadic/prefix.m, polyadic/simplify.m, polyadic/size.m, polyadic/suffix.m, polyadic/transpose.m, polyadic/validate.m, Tensor_train_module

Version 2.1, authors: Ilya Kuprov