<?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>genericMatrix -- make a generic matrix of variables</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_generic__Skew__Matrix.html">next</a> | <a href="___Generic.html">previous</a> | <a href="_generic__Skew__Matrix.html">forward</a> | <a href="___Generic.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>genericMatrix -- make a generic matrix of variables</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>genericMatrix(R,r,m,n)</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>R</tt>, <span>a <a href="___Ring.html">ring</a></span></span></li> <li><span><tt>r</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, which is a variable in the ring <tt>R</tt> (this input is optional)</span></li> <li><span><tt>m</tt>, <span>an <a href="___Z__Z.html">integer</a></span></span></li> <li><span><tt>n</tt>, <span>an <a href="___Z__Z.html">integer</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Matrix.html">matrix</a></span>, with <tt>m</tt> rows and <tt>n</tt> columns whose entries are variables in the ring <tt>R</tt> starting with <tt>r</tt></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><table class="examples"><tr><td><pre>i1 : R = ZZ[a..z];</pre> </td></tr> <tr><td><pre>i2 : genericMatrix(R,a,2,4) o2 = | a c e g | | b d f h | 2 4 o2 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i3 : genericMatrix(R,i,3,2) o3 = | i l | | j m | | k n | 3 2 o3 : Matrix R <--- R</pre> </td></tr> </table> <p/> Omitting the input <tt>r</tt> is the same as having <tt>r</tt> be the first variable in <tt>R</tt>.<table class="examples"><tr><td><pre>i4 : genericMatrix(R,2,4) o4 = | a c e g | | b d f h | 2 4 o4 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i5 : genericMatrix(R,3,2) o5 = | a d | | b e | | c f | 3 2 o5 : Matrix R <--- R</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_vars_lp__Ring_rp.html" title="row matrix of the variables">vars(Ring)</a> -- row matrix of the variables</span></li> <li><span><a href="_generic__Skew__Matrix.html" title="make a generic skew symmetric matrix of variables">genericSkewMatrix</a> -- make a generic skew symmetric matrix of variables</span></li> <li><span><a href="_generic__Symmetric__Matrix.html" title="make a generic symmetric matrix">genericSymmetricMatrix</a> -- make a generic symmetric matrix</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>genericMatrix</tt> :</h2> <ul><li>genericMatrix(Ring,RingElement,ZZ,ZZ)</li> <li>genericMatrix(Ring,ZZ,ZZ)</li> </ul> </div> </div> </body> </html>