Difference between revisions of "Ttclass/diag.m"
(Restore pre-bulk-edit wiki content) |
(Add See also section to function-description page) |
||
| Line 7: | Line 7: | ||
If tt is a square matrix, return a vector by computing diag of every core. | 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. | If tt is a vector (one mode size is ones), return a diagonal matrix. | ||
| + | |||
| + | ==See also== | ||
| + | [[ttclass.m]], [[ttclass/trace.m]], [[ttclass/full.m]], [[Tensor_train_module#Tensor_train_functions|Tensor train functions]] | ||
Revision as of 11:16, 25 April 2026
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.
See also
ttclass.m, ttclass/trace.m, ttclass/full.m, Tensor train functions