<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, why "index/fill" should exist?</title>
    <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 01:35:36 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 01:35:36 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, why "index/fill" should exist?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, why "index/fill" should exist?</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist</link>
    </image>
    <item>
      <title>2D-input</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist?ref=Feed:MaplePrimes:why "index/fill" should exist?:Comments#answer98206</link>
      <itunes:summary>&lt;p&gt;It seems to turn up when using 2d-input. When using 1d-input ("Maple Notation") it doesn't show up.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It seems to turn up when using 2d-input. When using 1d-input ("Maple Notation") it doesn't show up.&lt;/p&gt;</description>
      <guid>98206</guid>
      <pubDate>Wed, 27 Oct 2010 20:22:57 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Related to tables</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist?ref=Feed:MaplePrimes:why "index/fill" should exist?:Comments#answer98212</link>
      <itunes:summary>&lt;p&gt;This behaviour doesn't seem to be directly related to 2-d input. If you enter table([]) in 1-d mode, you'll get the same behaviour. The 2-d math parser calls the table constructor, and that's why you see this unexpected output after entering a command in 2-d math. In any case, we'll look into this issue.&lt;/p&gt;
&lt;p&gt;Paulina&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;This behaviour doesn't seem to be directly related to 2-d input. If you enter table([]) in 1-d mode, you'll get the same behaviour. The 2-d math parser calls the table constructor, and that's why you see this unexpected output after entering a command in 2-d math. In any case, we'll look into this issue.&lt;/p&gt;
&lt;p&gt;Paulina&lt;/p&gt;</description>
      <guid>98212</guid>
      <pubDate>Wed, 27 Oct 2010 22:04:46 Z</pubDate>
      <itunes:author>pchin</itunes:author>
      <author>pchin</author>
    </item>
    <item>
      <title>meaning</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist?ref=Feed:MaplePrimes:why "index/fill" should exist?:Comments#comment98211</link>
      <itunes:summary>&lt;p&gt;It is a procedure. In the Standard GUI, after using 2D-input:&lt;/p&gt;
&lt;pre&gt;showstat(`index/fill`);

`index/fill` := proc(T, iniv)
local low, high, indices, ranges, i, n, nvals;
   1   ranges := [op(2,eval(T))];
   2   if nops(ranges) = nargs-2 then
   3     T[args[3 .. nargs]] := iniv;
   4     return
       end if;
   5   if not type(iniv,list) then
   6     error "initialization of arrays must be done with lists"
       end if;
   7   nvals := nops(iniv);
   8   low := op(1,ranges[nargs-1]);
   9   high := op(2,ranges[nargs-1]);
  10   n := high-low+1;
  11   if n &amp;lt; nvals then
  12     error "a list with %1 entries cannot be used to initialize the range %2", nvals, ranges[nargs-1]
       end if;
  13   indices := args[3 .. nargs];
  14   if nops(ranges) = nargs-1 then
  15     low := low-1;
  16     for i to nvals do
  17       T[indices,low+i] := iniv[i]
         end do
       else
  18     for i to nvals do
  19       procname(T,iniv[i],indices,i-1+op(1,ranges[nargs-1]))
         end do
       end if
end proc
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;It is a procedure. In the Standard GUI, after using 2D-input:&lt;/p&gt;
&lt;pre&gt;showstat(`index/fill`);

`index/fill` := proc(T, iniv)
local low, high, indices, ranges, i, n, nvals;
   1   ranges := [op(2,eval(T))];
   2   if nops(ranges) = nargs-2 then
   3     T[args[3 .. nargs]] := iniv;
   4     return
       end if;
   5   if not type(iniv,list) then
   6     error "initialization of arrays must be done with lists"
       end if;
   7   nvals := nops(iniv);
   8   low := op(1,ranges[nargs-1]);
   9   high := op(2,ranges[nargs-1]);
  10   n := high-low+1;
  11   if n &amp;lt; nvals then
  12     error "a list with %1 entries cannot be used to initialize the range %2", nvals, ranges[nargs-1]
       end if;
  13   indices := args[3 .. nargs];
  14   if nops(ranges) = nargs-1 then
  15     low := low-1;
  16     for i to nvals do
  17       T[indices,low+i] := iniv[i]
         end do
       else
  18     for i to nvals do
  19       procname(T,iniv[i],indices,i-1+op(1,ranges[nargs-1]))
         end do
       end if
end proc
&lt;/pre&gt;</description>
      <guid>98211</guid>
      <pubDate>Wed, 27 Oct 2010 21:51:18 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>Thanks</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist?ref=Feed:MaplePrimes:why "index/fill" should exist?:Comments#comment98222</link>
      <itunes:summary>&lt;p&gt;Thank you for your attention.&lt;/p&gt;
&lt;p&gt;Best regards!&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank you for your attention.&lt;/p&gt;
&lt;p&gt;Best regards!&lt;/p&gt;</description>
      <guid>98222</guid>
      <pubDate>Thu, 28 Oct 2010 06:25:47 Z</pubDate>
      <itunes:author>Wang Gaoteng</itunes:author>
      <author>Wang Gaoteng</author>
    </item>
    <item>
      <title>Thanks</title>
      <link>http://www.mapleprimes.com/questions/98200-Why-indexfill-Should-Exist?ref=Feed:MaplePrimes:why "index/fill" should exist?:Comments#comment98221</link>
      <itunes:summary>&lt;p&gt;When I change 2-D input to 1-D input, it works very well.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;When I change 2-D input to 1-D input, it works very well.&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;</description>
      <guid>98221</guid>
      <pubDate>Thu, 28 Oct 2010 06:20:48 Z</pubDate>
      <itunes:author>Wang Gaoteng</itunes:author>
      <author>Wang Gaoteng</author>
    </item>
  </channel>
</rss>