Difference between revisions of "Ttclass/vec.m"
m (Add missing Version/authors metadata and remove raw author emails) |
m (Repair ttclass function page template) |
||
| Line 1: | Line 1: | ||
| + | {{DISPLAYTITLE:ttclass/vec.m}} __NOTOC__ | ||
Stretches arrays into vectors - useful for situations when the stand- | Stretches arrays into vectors - useful for situations when the stand- | ||
| − | ard (:) syntax is not available. Syntax | + | ard (:) syntax is not available. |
| + | |||
| + | ==Syntax== | ||
A=vec(A) | A=vec(A) | ||
| − | WARNING: for tensor trains this operation proceeds by stretching eve- | + | |
| − | ry core of the tensor train. the result is not the same as | + | ==Arguments== |
| − | column-wise matrix stretching (it is an element permutation | + | |
| − | away from it), but the resulting order of elements is consi- | + | A - numeric or ttclass array |
| − | stent with tensor train Kronecker product operation output. | + | |
| + | ==Outputs== | ||
| + | |||
| + | A - numeric or ttclass array | ||
| + | |||
| + | WARNING: for tensor trains this operation proceeds by stretching eve- | ||
| + | ry core of the tensor train. the result is not the same as | ||
| + | column-wise matrix stretching (it is an element permutation | ||
| + | away from it), but the resulting order of elements is consi- | ||
| + | stent with tensor train Kronecker product operation output. | ||
==See also== | ==See also== | ||
Revision as of 17:04, 5 June 2026
Stretches arrays into vectors - useful for situations when the stand- ard (:) syntax is not available.
Syntax
A=vec(A)
Arguments
A - numeric or ttclass array
Outputs
A - numeric or ttclass array
WARNING: for tensor trains this operation proceeds by stretching eve-
ry core of the tensor train. the result is not the same as
column-wise matrix stretching (it is an element permutation
away from it), but the resulting order of elements is consi-
stent with tensor train Kronecker product operation output.
See also
ttclass.m, ttclass/full.m, ttclass/size.m, Tensor train functions
Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov