1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
<html lang="en">
<head>
<title>Sparse Matrices in Oct-Files - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.11">
<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">
<p>
<a name="Sparse-Matrices-in-Oct-Files"></a>
<a name="Sparse-Matrices-in-Oct_002dFiles"></a>
Next: <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: <a rel="previous" accesskey="p" href="Structures-in-Oct_002dFiles.html#Structures-in-Oct_002dFiles">Structures in Oct-Files</a>,
Up: <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<T></code> template class,
and so all have similar capabilities and usage. The <code>Sparse<T></code>
class was based on Octave <code>Array<T></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>
|