<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>matrix(Matrix) -- the matrix between generators</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_matrix_lp__Mutable__Matrix_rp.html">next</a> | <a href="_matrix_lp__List_rp.html">previous</a> | <a href="_matrix_lp__Mutable__Matrix_rp.html">forward</a> | <a href="_matrix_lp__List_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>matrix(Matrix) -- the matrix between generators</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>matrix f</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_matrix.html" title="make a matrix">matrix</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Matrix.html">matrix</a></span>, a map of modules</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Matrix.html">matrix</a></span>, If the source and target of f are free, then the result is f itself. Otherwise, the source and target will be replaced by the free modules whose basis elements correspond to the generators of the modules.</span></li> </ul> </div> </li> <li><div class="single"><a href="_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><a href="_matrix_lp__List_rp.html">Degree => ...</a>, -- create a matrix from a doubly-nested list of ring elements or matrices</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>Each homomorphism of modules f : M → N in Macaulay2 is induced from a matrix f0 : (cover M) →(cover N). This function returns this matrix.<table class="examples"><tr><td><pre>i1 : R = QQ[a..d];</pre> </td></tr> <tr><td><pre>i2 : I = ideal(a^2,b^2,c*d) 2 2 o2 = ideal (a , b , c*d) o2 : Ideal of R</pre> </td></tr> <tr><td><pre>i3 : f = basis(3,I) o3 = {2} | a b c d 0 0 0 0 0 0 0 0 | {2} | 0 0 0 0 a b c d 0 0 0 0 | {2} | 0 0 0 0 0 0 0 0 a b c d | o3 : Matrix</pre> </td></tr> <tr><td><pre>i4 : source f 12 o4 = R o4 : R-module, free, degrees {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}</pre> </td></tr> <tr><td><pre>i5 : target f o5 = image | a2 b2 cd | 1 o5 : R-module, submodule of R</pre> </td></tr> </table> The map f is induced by the following 3 by 12 matrix from R^12 to the 3 generators of <tt>I</tt>.<table class="examples"><tr><td><pre>i6 : matrix f o6 = {2} | a b c d 0 0 0 0 0 0 0 0 | {2} | 0 0 0 0 a b c d 0 0 0 0 | {2} | 0 0 0 0 0 0 0 0 a b c d | 3 12 o6 : Matrix R <--- R</pre> </td></tr> </table> To obtain the map that is the composite of this with the inclusion of I onto R, use <a href="_super.html" title="get the ambient module">super(Matrix)</a>.<table class="examples"><tr><td><pre>i7 : super f o7 = | a3 a2b a2c a2d ab2 b3 b2c b2d acd bcd c2d cd2 | 1 12 o7 : Matrix R <--- R</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_cover.html" title="get the covering free module">cover</a> -- get the covering free module</span></li> <li><span><a href="_super.html" title="get the ambient module">super</a> -- get the ambient module</span></li> <li><span><a href="_basis.html" title="basis of all or part of a module or ring">basis</a> -- basis of all or part of a module or ring</span></li> </ul> </div> </div> </body> </html>