Difference between revisions of "Ttclass/vec.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Kuprov moved page Vec.m to Ttclass/vec.m without leaving a redirect)
(Update function See also links and function index membership)
 
(9 intermediate revisions by the same user not shown)
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.
  
−
                              A=vec(A)
+
==Syntax==
 +
 
 +
    A=vec(A)
 +
 
 +
==Parameters==
 +
 
 +
    A - numeric or ttclass array
 +
 
 +
==Outputs==
 +
 
 +
    A - numeric or ttclass array
 
   
 
   
−
WARNING: for tensor trains this operation proceeds by stretching eve-
+
    WARNING: for tensor trains this operation proceeds by stretching eve-
−
ry core of the tensor train. the result is not the same as
+
    ry core of the tensor train. the result is not the same as
−
column-wise matrix stretching (it is an element permutation
+
    column-wise matrix stretching (it is an element permutation
−
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]], [[ttclass/amensolve.m]], [[ttclass/amensum.m]], [[ttclass/clearcoeff.m]], [[ttclass/conj.m]], [[ttclass/ctranspose.m]], [[ttclass/diag.m]], [[ttclass/dot.m]], [[ttclass/hdot.m]], [[ttclass/ismatrix.m]], [[ttclass/isnumeric.m]], [[ttclass/isreal.m]], [[ttclass/kron.m]], [[ttclass/mean.m]], [[ttclass/minus.m]], [[ttclass/mldivide.m]], [[ttclass/mrdivide.m]], [[ttclass/mtimes.m]], [[ttclass/nnz.m]], [[ttclass/norm.m]], [[ttclass/numel.m]], [[ttclass/pack.m]], [[ttclass/plus.m]], [[ttclass/rand.m]], [[ttclass/ranks.m]], [[ttclass/rdivide.m]], [[ttclass/revert.m]], [[ttclass/shrink.m]], [[ttclass/sizes.m]], [[ttclass/subsref.m]], [[ttclass/sum.m]], [[ttclass/trace.m]], [[ttclass/transpose.m]], [[ttclass/truncate.m]], [[ttclass/ttort.m]], [[ttclass/unit_like.m]], [[Tensor_train_module]]
 +
 
 +
''Version 2.1, authors: [[Dmitry Savostyanov]], [[Ilya Kuprov]]''

Latest revision as of 18:42, 6 June 2026

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

Syntax

    A=vec(A)

Parameters

    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, ttclass/amensolve.m, ttclass/amensum.m, ttclass/clearcoeff.m, ttclass/conj.m, ttclass/ctranspose.m, ttclass/diag.m, ttclass/dot.m, ttclass/hdot.m, ttclass/ismatrix.m, ttclass/isnumeric.m, ttclass/isreal.m, ttclass/kron.m, ttclass/mean.m, ttclass/minus.m, ttclass/mldivide.m, ttclass/mrdivide.m, ttclass/mtimes.m, ttclass/nnz.m, ttclass/norm.m, ttclass/numel.m, ttclass/pack.m, ttclass/plus.m, ttclass/rand.m, ttclass/ranks.m, ttclass/rdivide.m, ttclass/revert.m, ttclass/shrink.m, ttclass/sizes.m, ttclass/subsref.m, ttclass/sum.m, ttclass/trace.m, ttclass/transpose.m, ttclass/truncate.m, ttclass/ttort.m, ttclass/unit_like.m, Tensor_train_module

Version 2.1, authors: Dmitry Savostyanov, Ilya Kuprov