e <tt>symktensor</tt> constructor. This can be stored as a symmetric Kruskal tensor as follows.</p><pre class="codeinput">n = 4; <span class="comment">%The dimension in each mode of the tensor A</span>
m = 3; <span class="comment">%The number of modes of A</span>
r = 2; <span class="comment">%The rank of the decomposition</span>
X = reshape(1:n*r,n,r); <span class="comment">%The columns of this matrix are the vectors in decomposition</span>
L = [1; -1]; <span class="comment">%the weights (should be a column