<?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>mutableIdentity(Ring,ZZ) -- make a mutable identity matrix</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Mutable__List.html">next</a> | <a href="_mutable_spmatrices.html">previous</a> | <a href="___Mutable__List.html">forward</a> | <a href="_mutable_spmatrices.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>mutableIdentity(Ring,ZZ) -- make a mutable identity matrix</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>mutableIdentity(R,nrows)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_mutable__Identity_lp__Ring_cm__Z__Z_rp.html" title="make a mutable identity matrix">mutableIdentity</a></span></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>nrows</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="___Mutable__Matrix.html">mutable matrix</a></span>, an <tt>nrows</tt> by <tt>nrows</tt> mutable identity matrix filled with elements of the ring <tt>R</tt></span></li> </ul> </div> </li> <li><div class="single"><a href="_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><tt>Dense => </tt><span><span>default value true</span>, whether the encoding of the matrix should be dense or not: see <a href="___Mutable__Matrix.html" title="the class of all mutable matrices">MutableMatrix</a></span></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><table class="examples"><tr><td><pre>i1 : m = mutableIdentity(QQ,10) o1 = | 1 . . . . . . . . . | | . 1 . . . . . . . . | | . . 1 . . . . . . . | | . . . 1 . . . . . . | | . . . . 1 . . . . . | | . . . . . 1 . . . . | | . . . . . . 1 . . . | | . . . . . . . 1 . . | | . . . . . . . . 1 . | | . . . . . . . . . 1 | o1 : MutableMatrix</pre> </td></tr> <tr><td><pre>i2 : m_(5,5) = 11/13 11 o2 = -- 13 o2 : QQ</pre> </td></tr> <tr><td><pre>i3 : m o3 = | 1 . . . . . . . . . | | . 1 . . . . . . . . | | . . 1 . . . . . . . | | . . . 1 . . . . . . | | . . . . 1 . . . . . | | . . . . . 11/13 . . . . | | . . . . . . 1 . . . | | . . . . . . . 1 . . | | . . . . . . . . 1 . | | . . . . . . . . . 1 | o3 : MutableMatrix</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_mutable__Matrix.html" title="make a mutable matrix">mutableMatrix</a> -- make a mutable matrix</span></li> </ul> </div> </div> </body> </html>