<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cholesky decomposition &amp;amp; the LDL decomposition. finding D? in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856846#M205221</link>
    <description>&lt;P&gt;The LDL decomposition is not Cholesky, rather a slight modification of it with the benefit of not having to take the roots.&lt;/P&gt;
&lt;P&gt;But its very easy to get the LDL once you already have&amp;nbsp; the Cholesky decomposition:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1676746340483.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76506i957A791781837722/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_0-1676746340483.png" alt="Werner_E_0-1676746340483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may now define a custom LDL function which does exactly these few steps&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1676746031321.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76504i2EE40F41EC7EE033/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_2-1676746031321.png" alt="Werner_E_2-1676746031321.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 20:13:54 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2023-02-18T20:13:54Z</dc:date>
    <item>
      <title>Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856744#M205212</link>
      <description>&lt;P&gt;to all,&lt;/P&gt;
&lt;P&gt;A question regarding the&amp;nbsp;Cholesky LDL decomposition.&lt;/P&gt;
&lt;P&gt;given a matrix A one can have A=LDL* where L* is the transpose of L&lt;/P&gt;
&lt;P&gt;using the mathcad 15 cholesky(A), how does one code mathcad to get D?&lt;/P&gt;
&lt;P&gt;L = cholesky(A)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:53:33 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856744#M205212</guid>
      <dc:creator>JBlackhole</dc:creator>
      <dc:date>2023-02-17T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856800#M205214</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 755px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76482i6DEBBDF9D5A408ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What D&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 03:28:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856800#M205214</guid>
      <dc:creator>TH_10592087</dc:creator>
      <dc:date>2023-02-18T03:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856817#M205217</link>
      <description>&lt;P&gt;LDL Decomposition is not available it would be necessary to program it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;•Cholesky—Cholesky square root of a matrix&lt;BR /&gt;•LU—LU factorization into lower and upper triangular matrices&lt;BR /&gt;•QR—QR factorization into an orthonormal and upper triangular matrix&lt;BR /&gt;•svd—Singular values decomposition&lt;/P&gt;&lt;P&gt;Solve a linear system of n equations in n unknowns using the lsolve function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 06:14:11 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856817#M205217</guid>
      <dc:creator>TH_10592087</dc:creator>
      <dc:date>2023-02-18T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856822#M205218</link>
      <description>&lt;P&gt;from the same source ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JBlackhole_0-1676713042897.png" style="width: 400px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76496i32B5A1CC9553F490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JBlackhole_0-1676713042897.png" alt="JBlackhole_0-1676713042897.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 09:37:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856822#M205218</guid>
      <dc:creator>JBlackhole</dc:creator>
      <dc:date>2023-02-18T09:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856824#M205219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Still necessary to program it&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 10:22:28 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856824#M205219</guid>
      <dc:creator>TH_10592087</dc:creator>
      <dc:date>2023-02-18T10:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856846#M205221</link>
      <description>&lt;P&gt;The LDL decomposition is not Cholesky, rather a slight modification of it with the benefit of not having to take the roots.&lt;/P&gt;
&lt;P&gt;But its very easy to get the LDL once you already have&amp;nbsp; the Cholesky decomposition:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1676746340483.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76506i957A791781837722/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_0-1676746340483.png" alt="Werner_E_0-1676746340483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may now define a custom LDL function which does exactly these few steps&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1676746031321.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76504i2EE40F41EC7EE033/image-size/large?v=v2&amp;amp;px=999" role="button" title="Werner_E_2-1676746031321.png" alt="Werner_E_2-1676746031321.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 20:13:54 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856846#M205221</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-02-18T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856872#M205222</link>
      <description>&lt;P&gt;Thanks a lot for that&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;I was looking at pre &amp;amp; post multiplication ! Something like L^-1 A (L*)^-1. but you ends up with a "diagonal" matrix with unit value&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 10:06:15 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856872#M205222</guid>
      <dc:creator>JBlackhole</dc:creator>
      <dc:date>2023-02-19T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856874#M205223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/30473"&gt;@JBlackhole&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot for that&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;I was looking at pre &amp;amp; post multiplication ! Something like L^-1 A (L*)^-1. but you ends up with a "diagonal" matrix with unit value&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you mean by &lt;FONT face="courier new,courier"&gt;L&lt;/FONT&gt; the result of the &lt;FONT face="courier new,courier"&gt;cholesky&lt;/FONT&gt; function, this should&amp;nbsp; not be surprising. When the decomposition is &lt;FONT face="courier new,courier"&gt;S=L*L^T&lt;/FONT&gt;, then the only matrix you could squeeze in between using the very same &lt;FONT face="courier new,courier"&gt;L&lt;/FONT&gt; matrix is the identity matrix &lt;FONT face="courier new,courier"&gt;I -&amp;gt; S=L*I*L^T.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An additional advantage of the LDL* decomposition over Cholesky is, that it can also be used for indefinite matrices. But the approach I showed will of course not work ib that case because I am using the built-in &lt;FONT face="courier new,courier"&gt;cholesky()&lt;/FONT&gt; which will only work for positive definite matrices.&lt;BR /&gt;A more general LDL() function would have to be implemented in a different way without using &lt;FONT face="courier new,courier"&gt;cholesky()&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 22:49:34 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856874#M205223</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2023-02-19T22:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856958#M205229</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the LDL factorization.&amp;nbsp; If you want to extend this to the solution of Ax=b just ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference is:&amp;nbsp;&lt;A href="https://sites.ualberta.ca/~xzhuang/Math381/Lab5.pdf" target="_blank"&gt;https://sites.ualberta.ca/~xzhuang/Math381/Lab5.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 389px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76560iF9B5D0B4DAC0761E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 589px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76561iBD960D024AA17D19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Good Luck With It.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 08:52:06 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856958#M205229</guid>
      <dc:creator>TH_10592087</dc:creator>
      <dc:date>2023-02-20T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cholesky decomposition &amp; the LDL decomposition. finding D?</title>
      <link>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856969#M205231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Revision to program to correct second summation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 538px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/76562iD6D378C7D0F1E76B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:32:18 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Cholesky-decomposition-amp-the-LDL-decomposition-finding-D/m-p/856969#M205231</guid>
      <dc:creator>TH_10592087</dc:creator>
      <dc:date>2023-02-20T09:32:18Z</dc:date>
    </item>
  </channel>
</rss>

