<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Condition of Jacobi Iteration</title>
    <link>http://www.mapleprimes.com/questions/128707-Condition-Of-Jacobi-Iteration</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 18:25:14 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 18:25:14 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Condition of Jacobi Iteration</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Condition of Jacobi Iteration</title>
      <link>http://www.mapleprimes.com/questions/128707-Condition-Of-Jacobi-Iteration</link>
    </image>
    <item>
      <title>sum -&gt; add</title>
      <link>http://www.mapleprimes.com/questions/128707-Condition-Of-Jacobi-Iteration?ref=Feed:MaplePrimes:Condition of Jacobi Iteration:Comments#answer128709</link>
      <itunes:summary>&lt;p&gt;Change &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=sum"&gt;?sum&lt;/a&gt; to &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=add"&gt;?add&lt;/a&gt; and remove the forward-quotes from A.&amp;nbsp; The sum procedure is intended for indefinite summation. You can also delete the two statements, i::nonnegint; and j::nonnegint.&amp;nbsp; They have no effect on the operation. For this procedure to work, the LinearAlgebra package must have been "withed".&amp;nbsp; A better design is to add the statement&lt;/p&gt;
&lt;pre&gt;uses LinearAlgebra;&lt;/pre&gt;
&lt;p&gt;at the start of the body of the procedure.&amp;nbsp; See &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=uses' target='_new'&gt;?uses&lt;/a&gt;. Actually, since you use but one procedure from the LinearAlgebra package, it is easy enough to call ColumnDimension with LinearAlgebra:-ColumnDimension.&amp;nbsp; An alternative is to use the new command, &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=upperbound' target='_new'&gt;?upperbound&lt;/a&gt;.&amp;nbsp; Do&lt;/p&gt;
&lt;pre&gt;dimA := upperbound(A,2);&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Change &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=sum"&gt;?sum&lt;/a&gt; to &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=add"&gt;?add&lt;/a&gt; and remove the forward-quotes from A.&amp;nbsp; The sum procedure is intended for indefinite summation. You can also delete the two statements, i::nonnegint; and j::nonnegint.&amp;nbsp; They have no effect on the operation. For this procedure to work, the LinearAlgebra package must have been "withed".&amp;nbsp; A better design is to add the statement&lt;/p&gt;
&lt;pre&gt;uses LinearAlgebra;&lt;/pre&gt;
&lt;p&gt;at the start of the body of the procedure.&amp;nbsp; See &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=uses' target='_new'&gt;?uses&lt;/a&gt;. Actually, since you use but one procedure from the LinearAlgebra package, it is easy enough to call ColumnDimension with LinearAlgebra:-ColumnDimension.&amp;nbsp; An alternative is to use the new command, &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=upperbound' target='_new'&gt;?upperbound&lt;/a&gt;.&amp;nbsp; Do&lt;/p&gt;
&lt;pre&gt;dimA := upperbound(A,2);&lt;/pre&gt;</description>
      <guid>128709</guid>
      <pubDate>Tue, 13 Dec 2011 08:57:23 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>diagonally dominant</title>
      <link>http://www.mapleprimes.com/questions/128707-Condition-Of-Jacobi-Iteration?ref=Feed:MaplePrimes:Condition of Jacobi Iteration:Comments#answer128710</link>
      <itunes:summary>&lt;p&gt;The test should occur within the loop, because you have test every row. The procedure can return as soon as it determines failure of the test for any particular row.&lt;/p&gt;
&lt;pre&gt;JacobiCondition:= proc(A)
     local MC, i, j, DimA;
     DimA:=LinearAlgebra:-ColumnDimension(A);
     for i from 1 to DimA do:
        if add(abs(A[i,j]),j=1..DimA) &amp;gt;= 2*abs(A[i,i]) then
           print("It's Not OK");
           return NULL;
        end if;
     end do;
     print("It's OK");
     return NULL;
end proc:
&lt;/pre&gt;
&lt;p&gt;You should consider applying evalf around the references A[i,i] and A[i,j], so that it can work for Matrices with entries like sqrt(2).&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The test should occur within the loop, because you have test every row. The procedure can return as soon as it determines failure of the test for any particular row.&lt;/p&gt;
&lt;pre&gt;JacobiCondition:= proc(A)
     local MC, i, j, DimA;
     DimA:=LinearAlgebra:-ColumnDimension(A);
     for i from 1 to DimA do:
        if add(abs(A[i,j]),j=1..DimA) &amp;gt;= 2*abs(A[i,i]) then
           print("It's Not OK");
           return NULL;
        end if;
     end do;
     print("It's OK");
     return NULL;
end proc:
&lt;/pre&gt;
&lt;p&gt;You should consider applying evalf around the references A[i,i] and A[i,j], so that it can work for Matrices with entries like sqrt(2).&lt;/p&gt;</description>
      <guid>128710</guid>
      <pubDate>Tue, 13 Dec 2011 10:14:26 Z</pubDate>
      <itunes:author>Pseudomodo</itunes:author>
      <author>Pseudomodo</author>
    </item>
    <item>
      <title>I got it. Thanks so much for helping me.</title>
      <link>http://www.mapleprimes.com/questions/128707-Condition-Of-Jacobi-Iteration?ref=Feed:MaplePrimes:Condition of Jacobi Iteration:Comments#answer128715</link>
      <itunes:summary>&lt;p&gt;I got it. Thanks so much for helping me.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I got it. Thanks so much for helping me.&lt;/p&gt;</description>
      <guid>128715</guid>
      <pubDate>Tue, 13 Dec 2011 12:11:54 Z</pubDate>
      <itunes:author>Tiamosg</itunes:author>
      <author>Tiamosg</author>
    </item>
  </channel>
</rss>