Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b38d2da330d1936e5ab1307c039c4941 > files > 461

octave-doc-3.6.4-3.mga4.noarch.rpm

<html lang="en">
<head>
<title>Sparse Matrices in Oct-Files - GNU Octave</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Octave">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Oct_002dFiles.html#Oct_002dFiles" title="Oct-Files">
<link rel="prev" href="Structures-in-Oct_002dFiles.html#Structures-in-Oct_002dFiles" title="Structures in Oct-Files">
<link rel="next" href="Accessing-Global-Variables-in-Oct_002dFiles.html#Accessing-Global-Variables-in-Oct_002dFiles" title="Accessing Global Variables in Oct-Files">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Sparse-Matrices-in-Oct-Files"></a>
<a name="Sparse-Matrices-in-Oct_002dFiles"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Accessing-Global-Variables-in-Oct_002dFiles.html#Accessing-Global-Variables-in-Oct_002dFiles">Accessing Global Variables in Oct-Files</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Structures-in-Oct_002dFiles.html#Structures-in-Oct_002dFiles">Structures in Oct-Files</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Oct_002dFiles.html#Oct_002dFiles">Oct-Files</a>
<hr>
</div>

<h4 class="subsection">A.1.6 Sparse Matrices in Oct-Files</h4>

<p>There are three classes of sparse objects that are of interest to the
user.

     <dl>
<dt><code>SparseMatrix</code><dd>A double precision sparse matrix class

     <br><dt><code>SparseComplexMatrix</code><dd>A complex sparse matrix class

     <br><dt><code>SparseBoolMatrix</code><dd>A boolean sparse matrix class
</dl>

   <p>All of these classes inherit from the <code>Sparse&lt;T&gt;</code> template class,
and so all have similar capabilities and usage.  The <code>Sparse&lt;T&gt;</code>
class was based on Octave <code>Array&lt;T&gt;</code> class, and so users familiar
with Octave's <code>Array</code> classes will be comfortable with the use of
the sparse classes.

   <p>The sparse classes will not be entirely described in this section, due
to their similarity with the existing <code>Array</code> classes.  However,
there are a few differences due the different nature of sparse objects,
and these will be described.  Firstly, although it is fundamentally
possible to have N-dimensional sparse objects, the Octave sparse classes do
not allow them at this time.  So all operations of the sparse classes
must be 2-dimensional.  This means that in fact <code>SparseMatrix</code> is
similar to Octave's <code>Matrix</code> class rather than its
<code>NDArray</code> class.

<ul class="menu">
<li><a accesskey="1" href="Array-and-Sparse-Differences.html#Array-and-Sparse-Differences">Array and Sparse Differences</a>
<li><a accesskey="2" href="Creating-Sparse-Matrices-in-Oct_002dFiles.html#Creating-Sparse-Matrices-in-Oct_002dFiles">Creating Sparse Matrices in Oct-Files</a>
<li><a accesskey="3" href="Using-Sparse-Matrices-in-Oct_002dFiles.html#Using-Sparse-Matrices-in-Oct_002dFiles">Using Sparse Matrices in Oct-Files</a>
</ul>

   </body></html>