Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Otimização e Simulação > Semidefinite Programming > vec2list

vec2list

Inverse function of list2vec.

Calling Sequence

li=vec2list(bigVector,varsizes,ind)

Arguments

bigVector

An m by n matrix. Each column is used to generate the corresponding list entry.

varsizes

An n by 2 matrix. Each row give the dimensions of the matrix to be built with the corresponding column of bigVector.

ind

a list with n entries. Each entry is a vector of positive integers which gives the hierchical path where the corresponding matrix has to be put.

li

a list or a recursive list with n leaves. The list entries (or leaves) are 2D matrices built with the corresponding column of bigVector and size given by the corresponding row of varsizes.

Description

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

Examples

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

See Also

  • list2vec — Concatenates list entries in a matrix.
Report an issue
<< unpack Semidefinite Programming NDcost >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:18:13 CEST 2014