Library: | math |
See also: | cinv cmatdiv |
Quantlet: | cmatmul | |
Description: | Computes the complex matrix multiplication of X and Y |
Usage: | z = cmatmul (x, y) | |
Input: | ||
x | complex matrix X | |
y | complexr matrix Y | |
Output: | ||
z | complex matrix |
library("math") x = complex(#(-2, 0)~#(-1, -2), #(-1, 0)~#(-3, -1)) y = complex(#(-2, -1)~#(-1, 0), #(-1, 0)~#(0, 0)) cmatmul(x, y)
Contents of z.re [1,] 4 2 [2,] 2 0 Contents of z.im [1,] 7 1 [2,] 1 0