Difference between revisions of "Polyadic/mtimes.m"
(Add NOTOC to Spinach function page header) |
m (Rename Arguments section heading to Parameters) |
||
| Line 9: | Line 9: | ||
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. | 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. | ||
| − | == | + | ==Parameters== |
a,b - a polyadic or a numerical array | a,b - a polyadic or a numerical array | ||
Revision as of 18:51, 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.
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
Version 2.1, authors: Ilya Kuprov