Difference between revisions of "Polyadic/mtimes.m"
m (Correct function page display title to polyadic/mtimes.m) |
(Add NOTOC to Spinach function page header) |
||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:polyadic/mtimes.m}} | + | {{DISPLAYTITLE:polyadic/mtimes.m}} __NOTOC__ |
Performs polyadic-times-numeric multiplications. | Performs polyadic-times-numeric multiplications. | ||
Revision as of 16:58, 5 June 2026
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