Chapter Contents |
Previous |
Next |
Language Reference |
takes the direct product of two matrices
The direct product operator (@) produces a new matrix that is the direct product (also called the Kronecker product) of matrix1 and matrix2, usually denoted by .The number of rows in the new matrix equals the product of the number of rows in matrix1 and the number of rows in matrix2; the number of columns in the new matrix equals the product of the number of columns in matrix1 and the number of columns in matrix2.
For example, the statements
a={1 2, 3 4}; b={0 2}; c=a@b;result in
C 2 rows 4 cols (numeric) 0 2 0 4 0 6 0 8The statement
d=b@a;results in
D 2 rows 4 cols (numeric) 0 0 2 4 0 0 6 8
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.