Inverse function of list2vec.
li=vec2list(bigVector,varsizes,ind)
:
If the ind argument is not given, this function creates a list. The list entries (or leaves) are 2D matrices built with the corresponding column of bigVector and size given by the corresponding row of varsizes.
If the ind argument is given, this function creates a hierachical list with n leaves. The leaves are 2D matrices built with the corresponding column of bigVector and size given by the corresponding row of varsizes. The hierachical path for each leaf if given by the corresponding entry of ind.
This function is a subsidiary for lmisolver
vec2list(1:4,`ones`_(4,2))
vec2list(1:4,[2 1;1 2])
vec2list(1:4,`ones`_(4,2),`list`_(1,2,[3,1],[3,2,1]))