<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Return an identity matrix</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="lapack.eigenvalues.html">Lapack::eigenValues</a></div> <div class="next" style="text-align: right; float: right;"><a href="lapack.leastsquaresbyfactorisation.html">Lapack::leastSquaresByFactorisation</a></div> <div class="up"><a href="class.lapack.html">Lapack</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="lapack.identity" class="refentry"> <div class="refnamediv"> <h1 class="refname">Lapack::identity</h1> <p class="verinfo">(PECL lapack >= 0.1.0)</p><p class="refpurpose"><span class="refname">Lapack::identity</span> — <span class="dc-title">Return an identity matrix</span></p> </div> <div class="refsect1 description" id="refsect1-lapack.identity-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>Lapack::identity</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$n</code></span> )</div> <p class="para rdfs-comment"> Return a size n identity matrix </p> </div> <div class="refsect1 parameters" id="refsect1-lapack.identity-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">n</code></em></span> <dd> <p class="para"> The height and width of the identity matrix. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-lapack.identity-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Will return a an array of n arrays, each containing n entries. The diagonals of the matrix will be 1s, the other positions 0. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="lapack.eigenvalues.html">Lapack::eigenValues</a></div> <div class="next" style="text-align: right; float: right;"><a href="lapack.leastsquaresbyfactorisation.html">Lapack::leastSquaresByFactorisation</a></div> <div class="up"><a href="class.lapack.html">Lapack</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>