Home
Manual
Packages
Global Index
Keywords
Quick Reference

Yorick Function Reference
Matrix Multiplication
The * binary operator normally represents the product of its
operands elementbyelement, following the same conformability rules as
the other binary operators. However, by marking one dimension of its left
operand and one dimension of its right operand with +,
*
will be interpreted as a matrix multiply along the marked dimensions. The
marked dimensions must have the same length. The result will have the unmarked
dimensions of the left operand, followed by the unmarked dimensions of
the right operand.
For example, if x is a 12by25by35 array, y and
z
are vectors of length 35, and w is a 9by12by7 array, then:
x(,,+)*y(+) 
is a 12by25 array 
y(+)*z(+) 
is the inner product of y and z 
x(+,,)*w(,+,) 
is a 25by35by9by7 array 
