Opened 9 years ago

# allow 'vector(matrix)'

Reported by: Owned by: ren somebody trivial 4-1-0 and higher dontKnow 4-0-0

### Description

Since Singular can cast a vector into a matrix consisting of a single column, it would in my opinion be intuitive if it could do the reverse.

```ren@mandelbrot:~\$ Singular
SINGULAR                                 /  Development
A Computer Algebra System for Polynomial Computations       /   version 4.0.0
0<
by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Dec 2013
FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
> ring r;
> vector v=[x,y,z];
> print(matrix(v));
x,
y,
z
> matrix w=x,y,z;
> print(w);
x,
y,
z
> vector(w);
? vector(`matrix`) failed
? expected vector(`vector`)
? error occurred in or before STDIN line 7: `vector(w);`
> module M;
> M=v;
> M=w;
? `vector` = `matrix` is not supported
? expected `vector` = `vector`
? error occurred in or before STDIN line 10: `M=w;`
```

### comment:1 Changed 9 years ago by anne

Hi Ren,

this functionality is available in an intuitive way: the columns of a matrix are vectors and can be accessed in this way, e.g.

```> matrix M=x,y,z,y,z,x;
> print(M);
x,y,z,
y,z,x
> vector v=M;
> v;
x*gen(1)+y*gen(2)
> vector v=transpose(M);
// ** redefining v **
> v;
x*gen(3)+y*gen(1)+z*gen(2)
```

I hope this helps.

Best, Anne

Note: See TracTickets for help on using tickets.