|
[Date Index]
[Thread Index]
[Author Index]
Re: Convert nxn matrix to a column vector with (n^2) elements
- To: mathgroup at smc.vnet.net
- Subject: [mg83756] Re: Convert nxn matrix to a column vector with (n^2) elements
- From: dh <dh at metrohm.ch>
- Date: Thu, 29 Nov 2007 06:41:35 -0500 (EST)
- References: <fiji4u$ijb$1@smc.vnet.net>
Hi,
in mathematica there is usually no need to distinguish between raw and
column vectors. You would simply say: Flatten[matrix] what gives a vector.
Nevertheless, if you want to create a vector of "lines" with one element
you can do this by mapping List to the vector elements:
List /@ Flatten[matrix]
hope this helps, Daniel
Tara.Ann.Lorenz at gmail.com wrote:
> Any ideas how to convert an nxn matrix to a column vector with n^2
> elements?
>
Prev by Date:
Re: Convert nxn matrix to a column vector with (n^2) elements
Next by Date:
"vector" Map[] / functional outer product?
Previous by thread:
Re: Convert nxn matrix to a column vector with (n^2) elements
Next by thread:
Re: Convert nxn matrix to a column vector with (n^2) elements
|