Difference between revisions of "Ttclass/diag.m"
(Created page with "Mimics the diag behavior for tensor train matrix. Syntax: tt=diag(tt) If tt is a square matrix, return a vector by computing diag of every core. ...") |
m (Kuprov moved page Diag.m to Ttclass/diag.m without leaving a redirect) |
(No difference)
| |
Revision as of 16:37, 28 December 2017
Mimics the diag behavior for tensor train matrix. Syntax:
tt=diag(tt)
If tt is a square matrix, return a vector by computing diag of every core. If tt is a vector (one mode size is ones), return a diagonal matrix.