Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4709

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>map(Module,Nothing,List) -- create a matrix by giving a doubly nested list of ring elements</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_map_lp__Module_cm__Z__Z_cm__List_rp.html">next</a> | <a href="_map_lp__Module_cm__Z__Z_cm__Function_rp.html">previous</a> | <a href="_map_lp__Module_cm__Z__Z_cm__List_rp.html">forward</a> | <a href="_map_lp__Module_cm__Z__Z_cm__Function_rp.html">backward</a> | <a href="_map.html">up</a> | <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>
<div><a href="_map.html" title="make a map">map</a> > <a href="_map_lp__Module_cm__Nothing_cm__List_rp.html" title="create a matrix by giving a doubly nested list of ring elements">map(Module,Nothing,List)</a></div>
<hr/>
<div><h1>map(Module,Nothing,List) -- create a matrix by giving a doubly nested list of ring elements</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>map(M,v)</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_map.html" title="make a map">map</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>M</tt>, <span>a <a href="___Module.html">module</a></span></span></li>
<li><span><tt>v</tt>, <span>a <a href="___List.html">list</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___Matrix.html">matrix</a></span>, A matrix <tt>M &lt;-- R^n</tt> whose entries are obtained from <tt>v</tt>, where R  is the ring of M, and the source of the result is a graded free module chosen in an attempt to make the result homogeneous of degree zero</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="_map_lp..._cm_sp__Degree_sp_eq_gt_sp..._rp.html">Degree => ...</a>,  -- set the degree of a map</span></li>
<li><span><a href="_map_lp__Ring_cm__Ring_cm__Matrix_rp.html">DegreeLift => ...</a>,  -- make a ring map</span></li>
<li><span><a href="_map_lp__Ring_cm__Ring_cm__Matrix_rp.html">DegreeMap => ...</a>,  -- make a ring map</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>The list <tt>v</tt> must be a doubly nested list of ring elements, which are used to fill the matrix, row by row.<p/>
The ring elements appearing in <tt>v</tt> should be be in <tt>R</tt>, or in a base ring of <tt>R</tt>.<p/>
Each list in v gives a row of the matrix. The length of the list <tt>v</tt> should be the number of generators of <tt>M</tt>, and the length of each element of <tt>v</tt> (which is itself a list of ring elements) should be the number of generators of the source module <tt>N</tt>.<table class="examples"><tr><td><pre>i1 : R = ZZ/101[x,y,z]

o1 = R

o1 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i2 : p = map(R^2,,{{x^2,0,3},{0,y^2,5}})

o2 = | x2 0  3 |
     | 0  y2 5 |

             2       3
o2 : Matrix R  &lt;--- R</pre>
</td></tr>
<tr><td><pre>i3 : isHomogeneous p

o3 = true</pre>
</td></tr>
</table>
Another way is to use the <a href="_matrix_lp__List_rp.html" title="create a matrix from a doubly-nested list of ring elements or matrices">matrix(List)</a> routine:<table class="examples"><tr><td><pre>i4 : p = matrix {{x^2,0,3},{0,y^2,5}}

o4 = | x2 0  3 |
     | 0  y2 5 |

             2       3
o4 : Matrix R  &lt;--- R</pre>
</td></tr>
</table>
<p/>
The absence of the second argument indicates that the source of the map is to be a free module constructed with an attempt made to assign degrees to its basis elements so as to make the map homogeneous of degree zero.<p/>
<table class="examples"><tr><td><pre>i5 : R = ZZ/101[x,y]

o5 = R

o5 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i6 : f = map(R^2,,{{x^2,y^2},{x*y,0}})

o6 = | x2 y2 |
     | xy 0  |

             2       2
o6 : Matrix R  &lt;--- R</pre>
</td></tr>
<tr><td><pre>i7 : degrees source f

o7 = {{2}, {2}}

o7 : List</pre>
</td></tr>
<tr><td><pre>i8 : isHomogeneous f

o8 = true</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_matrix.html" title="make a matrix">matrix</a> -- make a matrix</span></li>
<li><span><a href="_map_lp__Module_cm__Module_cm__List_rp.html" title="create a matrix by giving a sparse or dense list of entries">map(Module,Module,List)</a> -- create a matrix by giving a sparse or dense list of entries</span></li>
</ul>
</div>
</div>
</body>
</html>