<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Decompose a third order tensor into pure tensors?</title>
    <link>http://www.mapleprimes.com/questions/97377-Decompose-A-Third-Order-Tensor-Into-Pure-Tensors</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 09:41:51 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 09:41:51 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Decompose a third order tensor into pure tensors?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Decompose a third order tensor into pure tensors?</title>
      <link>http://www.mapleprimes.com/questions/97377-Decompose-A-Third-Order-Tensor-Into-Pure-Tensors</link>
    </image>
    <item>
      <title>Approximation?</title>
      <link>http://www.mapleprimes.com/questions/97377-Decompose-A-Third-Order-Tensor-Into-Pure-Tensors?ref=Feed:MaplePrimes:Decompose a third order tensor into pure tensors?:Comments#answer97378</link>
      <itunes:summary>&lt;p&gt;What a short bike ride can't do for you (from work to home). Here is at least an approximation algorithm, valid for general &lt;em&gt;k&lt;/em&gt;th order tensors &lt;em&gt;v&lt;/em&gt;.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Let &lt;em&gt;u&lt;/em&gt;&amp;nbsp;be the best rank-one approximation to &lt;em&gt;v&lt;/em&gt;. If &lt;em&gt;v&lt;/em&gt;&amp;nbsp;= &lt;em&gt;u&lt;/em&gt;, stop, otherwise approximate&amp;nbsp;&lt;em&gt;v&lt;/em&gt;&amp;nbsp;- &lt;em&gt;u&lt;/em&gt;&amp;nbsp;recursively.&lt;/p&gt;
&lt;p&gt;Now the problem has been reduced to finding the best rank one approximation to a general &lt;em&gt;k&lt;/em&gt;th order tensor &lt;em&gt;v&lt;/em&gt;. I think we can do this as follows:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Add the entries along one dimension of the tensor, resulting in a (&lt;em&gt;k&lt;/em&gt;&amp;nbsp;- 1)th order tensor &lt;em&gt;w&lt;/em&gt;.&amp;nbsp;Take the best rank-one tensor approximating &lt;em&gt;w&lt;/em&gt;. Find a vector &lt;em&gt;t&lt;/em&gt;&amp;nbsp;so that &lt;em&gt;t&lt;/em&gt;&amp;nbsp;tensor &lt;em&gt;w&lt;/em&gt;&amp;nbsp;is the best possible approximation to &lt;em&gt;v&lt;/em&gt;, by considering the components of &lt;em&gt;t&lt;/em&gt;&amp;nbsp;individually.&lt;/p&gt;
&lt;p&gt;Again a reduction, this time to the same problem for &lt;em&gt;k&lt;/em&gt;&amp;nbsp;- 1 (which we solve by induction with SVD as the base case) and to finding a scalar &lt;em&gt;t&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&lt;sub&gt;&amp;nbsp;&lt;/sub&gt;&amp;nbsp;such that&amp;nbsp;&lt;em&gt;t&lt;sub&gt;i&lt;/sub&gt; * w&lt;/em&gt;&amp;nbsp;approximates &lt;em&gt;v&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&amp;nbsp;best. This sounds like a problem that is manageable; I think it's probably convex.&lt;/p&gt;
&lt;p&gt;However, this is certainly only an approximation algorithm: for the tensor&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=48bf7e404dc95ca19bd01ff4e55ecc98.gif" alt="&amp;lt;1,0&amp;gt;"&gt;&amp;nbsp;tensor&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=a4b7781eabe3ea44bb4cbb4d541e2ca8.gif" alt="&amp;lt;1,0|0,1&amp;gt;"&gt;&amp;nbsp;minus&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=b7d6097e4f6a63bc4c77007f9c94c870.gif" alt="&amp;lt;0,1&amp;gt;"&gt;&amp;nbsp;tensor&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=dd93a6dddad8592610f4c61bf2b26909.gif" alt="&amp;lt;0,1|1,0&amp;gt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;every resulting approximation is the zero matrix. I guess I will implement this and see how well it performs for images...&lt;/p&gt;
&lt;p&gt;Erik Postma&lt;br&gt;Maplesoft.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;What a short bike ride can't do for you (from work to home). Here is at least an approximation algorithm, valid for general &lt;em&gt;k&lt;/em&gt;th order tensors &lt;em&gt;v&lt;/em&gt;.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Let &lt;em&gt;u&lt;/em&gt;&amp;nbsp;be the best rank-one approximation to &lt;em&gt;v&lt;/em&gt;. If &lt;em&gt;v&lt;/em&gt;&amp;nbsp;= &lt;em&gt;u&lt;/em&gt;, stop, otherwise approximate&amp;nbsp;&lt;em&gt;v&lt;/em&gt;&amp;nbsp;- &lt;em&gt;u&lt;/em&gt;&amp;nbsp;recursively.&lt;/p&gt;
&lt;p&gt;Now the problem has been reduced to finding the best rank one approximation to a general &lt;em&gt;k&lt;/em&gt;th order tensor &lt;em&gt;v&lt;/em&gt;. I think we can do this as follows:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;Add the entries along one dimension of the tensor, resulting in a (&lt;em&gt;k&lt;/em&gt;&amp;nbsp;- 1)th order tensor &lt;em&gt;w&lt;/em&gt;.&amp;nbsp;Take the best rank-one tensor approximating &lt;em&gt;w&lt;/em&gt;. Find a vector &lt;em&gt;t&lt;/em&gt;&amp;nbsp;so that &lt;em&gt;t&lt;/em&gt;&amp;nbsp;tensor &lt;em&gt;w&lt;/em&gt;&amp;nbsp;is the best possible approximation to &lt;em&gt;v&lt;/em&gt;, by considering the components of &lt;em&gt;t&lt;/em&gt;&amp;nbsp;individually.&lt;/p&gt;
&lt;p&gt;Again a reduction, this time to the same problem for &lt;em&gt;k&lt;/em&gt;&amp;nbsp;- 1 (which we solve by induction with SVD as the base case) and to finding a scalar &lt;em&gt;t&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&lt;sub&gt;&amp;nbsp;&lt;/sub&gt;&amp;nbsp;such that&amp;nbsp;&lt;em&gt;t&lt;sub&gt;i&lt;/sub&gt; * w&lt;/em&gt;&amp;nbsp;approximates &lt;em&gt;v&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&amp;nbsp;best. This sounds like a problem that is manageable; I think it's probably convex.&lt;/p&gt;
&lt;p&gt;However, this is certainly only an approximation algorithm: for the tensor&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=48bf7e404dc95ca19bd01ff4e55ecc98.gif" alt="&amp;lt;1,0&amp;gt;"&gt;&amp;nbsp;tensor&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=a4b7781eabe3ea44bb4cbb4d541e2ca8.gif" alt="&amp;lt;1,0|0,1&amp;gt;"&gt;&amp;nbsp;minus&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=b7d6097e4f6a63bc4c77007f9c94c870.gif" alt="&amp;lt;0,1&amp;gt;"&gt;&amp;nbsp;tensor&amp;nbsp;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=dd93a6dddad8592610f4c61bf2b26909.gif" alt="&amp;lt;0,1|1,0&amp;gt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;every resulting approximation is the zero matrix. I guess I will implement this and see how well it performs for images...&lt;/p&gt;
&lt;p&gt;Erik Postma&lt;br&gt;Maplesoft.&amp;nbsp;&lt;/p&gt;</description>
      <guid>97378</guid>
      <pubDate>Sat, 02 Oct 2010 03:48:15 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
    <item>
      <title>Wikipedia</title>
      <link>http://www.mapleprimes.com/questions/97377-Decompose-A-Third-Order-Tensor-Into-Pure-Tensors?ref=Feed:MaplePrimes:Decompose a third order tensor into pure tensors?:Comments#answer97380</link>
      <itunes:summary>&lt;p&gt;I can't believe I didn't check wikipedia: ﻿&lt;a href="http://en.wikipedia.org/wiki/Higher-order_singular_value_decomposition"&gt;http://en.wikipedia.org/wiki/Higher-order_singular_value_decomposition&lt;/a&gt;&amp;nbsp;explains that there are two notions of SVD for higher-order tensors, and the one I need is called candecomp-PARAFAC. I guess I'll be implementing that some time next week...&lt;/p&gt;
&lt;p&gt;Erik.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I can't believe I didn't check wikipedia: ﻿&lt;a href="http://en.wikipedia.org/wiki/Higher-order_singular_value_decomposition"&gt;http://en.wikipedia.org/wiki/Higher-order_singular_value_decomposition&lt;/a&gt;&amp;nbsp;explains that there are two notions of SVD for higher-order tensors, and the one I need is called candecomp-PARAFAC. I guess I'll be implementing that some time next week...&lt;/p&gt;
&lt;p&gt;Erik.&lt;/p&gt;</description>
      <guid>97380</guid>
      <pubDate>Sat, 02 Oct 2010 04:15:15 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
  </channel>
</rss>