<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, using the spare storage option for matrix</title>
    <link>http://www.mapleprimes.com/questions/37092-Using-The-Spare-Storage-Option-For-Matrix</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:35:07 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:35:07 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, using the spare storage option for matrix</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, using the spare storage option for matrix</title>
      <link>http://www.mapleprimes.com/questions/37092-Using-The-Spare-Storage-Option-For-Matrix</link>
    </image>
    <item>
      <title>MatrixOptions</title>
      <link>http://www.mapleprimes.com/questions/37092-Using-The-Spare-Storage-Option-For-Matrix?ref=Feed:MaplePrimes:using the spare storage option for matrix:Comments#answer65058</link>
      <itunes:summary>&lt;p&gt;There is a command to show the underlying storage of a Matrix.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; M := Matrix(100,100,'storage'='sparse'):

&amp;gt; MatrixOptions(M,'storage');
                                    sparse
&lt;/pre&gt;
&lt;p&gt;There are also ways to see the exact number of stored entries.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; N := Matrix(100,100):

&amp;gt; rtable_num_elems(N,'Stored');
                                     10000
 
&amp;gt; M := Matrix(100,100,'storage'='sparse'):

&amp;gt; rtable_num_elems(M,'Stored');
                                       0

&amp;gt; M[3,3]:=1.0:
&amp;gt; rtable_num_elems(M,'Stored');
                                       1
&lt;/pre&gt;
&lt;p&gt;That error message with HWcall[1] looks like a bug. You could &lt;a href="http://www.mapleprimes.com/scr/add"&gt;report it&lt;/a&gt;. If you post it then someone might suggest a workaround.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is a command to show the underlying storage of a Matrix.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; M := Matrix(100,100,'storage'='sparse'):

&amp;gt; MatrixOptions(M,'storage');
                                    sparse
&lt;/pre&gt;
&lt;p&gt;There are also ways to see the exact number of stored entries.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; N := Matrix(100,100):

&amp;gt; rtable_num_elems(N,'Stored');
                                     10000
 
&amp;gt; M := Matrix(100,100,'storage'='sparse'):

&amp;gt; rtable_num_elems(M,'Stored');
                                       0

&amp;gt; M[3,3]:=1.0:
&amp;gt; rtable_num_elems(M,'Stored');
                                       1
&lt;/pre&gt;
&lt;p&gt;That error message with HWcall[1] looks like a bug. You could &lt;a href="http://www.mapleprimes.com/scr/add"&gt;report it&lt;/a&gt;. If you post it then someone might suggest a workaround.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>65058</guid>
      <pubDate>Mon, 29 Jun 2009 17:56:23 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
  </channel>
</rss>