next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
NCAlgebra :: ncMatrix

ncMatrix -- Create an NCMatrix

Synopsis

Description

This command creates an NCMatrix. As with the matrix command, the user may provide this matrix as a doubly nested list of NCRingElements, or as a doubly nested list of NCMatrices.

The ncMatrix(NCRing,List,List) constructor is used only when creating maps to and from the zero free module.

i1 : A = QQ{a,b,c,d}

o1 = A

o1 : NCPolynomialRing
i2 : M = ncMatrix {{a,b,c,d}}

o2 = | a  b  c  d |

o2 : NCMatrix
i3 : N = ncMatrix {{M,2*M,3*M},{4*M,5*M,6*M}}

o3 = |  a   b   c   d  2a  2b  2c  2d  3a  3b  3c  3d |
     |                                                |
     | 4a  4b  4c  4d  5a  5b  5c  5d  6a  6b  6c  6d |

o3 : NCMatrix

Ways to use ncMatrix :