Difference between revisions of "Ttclass/vec.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Restore pre-bulk-edit wiki content)
(Add See also section to function-description page)
Line 10: Line 10:
 
away from it), but the resulting order of elements is consi-
 
away from it), but the resulting order of elements is consi-
 
stent with tensor train Kronecker product operation output.
 
stent with tensor train Kronecker product operation output.
 +
 +
==See also==
 +
[[ttclass.m]], [[ttclass/full.m]], [[ttclass/size.m]], [[Tensor_train_module#Tensor_train_functions|Tensor train functions]]

Revision as of 11:16, 25 April 2026

Stretches arrays into vectors - useful for situations when the stand- ard (:) syntax is not available. Syntax:


    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 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