Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

Direct Product Operator:   @

takes the direct product of two matrices

matrix1@matrix2

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 A \otimes B.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         8
The statement
   d=b@a;
results in
              D             2 rows      4 cols    (numeric)

                          0         0         2         4
                          0         0         6         8

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.