Top
Back: D.3.1.7 is_complex
Forward: D.3.1.9 power
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.3.1 matrix_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.3.1.8 outer

Procedure from library matrix.lib (see matrix_lib).

Usage:

outer(A,B); A,B matrices

Return:

matrix, outer (tensor) product of A and B

Example:

 
LIB "matrix.lib";
ring r=32003,(x,y,z),ds;
matrix A[3][3]=1,2,3,4,5,6,7,8,9;
matrix B[2][2]=x,y,0,z;
print(A);
→ 1,2,3,
→ 4,5,6,
→ 7,8,9 
print(B);
→ x,y,
→ 0,z 
print(outer(A,B));
→ x, y, 2x,2y,3x,3y,
→ 0, z, 0, 2z,0, 3z,
→ 4x,4y,5x,5y,6x,6y,
→ 0, 4z,0, 5z,0, 6z,
→ 7x,7y,8x,8y,9x,9y,
→ 0, 7z,0, 8z,0, 9z 

Top Back: D.3.1.7 is_complex Forward: D.3.1.9 power FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.3.1 matrix_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.