priyanka12
Programmer
Hi,
Can any one tell me if there is some way of doing the following ?
I have a vector num = {5,6,8,7,3}
From this vector, I need to create all those unique vectors that can be formed from vector num.
For instance,
{5}
{6}
{7}
..
..
{5,6}
{5,8}
..
..
{8,7}
{7,8}
..
..
{5,6,7}
{7,6,5}
..
..
{8,7,6,5,3}
{6,7,3,5,8}
..
.. and so on.
Thank you in advance,
Priyanka
Can any one tell me if there is some way of doing the following ?
I have a vector num = {5,6,8,7,3}
From this vector, I need to create all those unique vectors that can be formed from vector num.
For instance,
{5}
{6}
{7}
..
..
{5,6}
{5,8}
..
..
{8,7}
{7,8}
..
..
{5,6,7}
{7,6,5}
..
..
{8,7,6,5,3}
{6,7,3,5,8}
..
.. and so on.
Thank you in advance,
Priyanka