matrix columns
- To: mathgroup at smc.vnet.net
- Subject: [mg30247] matrix columns
- From: Aaron Urbas <aaurba2 at pop.uky.edu>
- Date: Fri, 3 Aug 2001 00:56:18 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
According to the mathematica book there are 2 ways to access columns of a matrix (Mathmatica V. 3) Transpose[m][[i]] and Map[#[[i]]&,m]. Are the efficiencies of these two operations the same. Also, I can't figure out how you would assign a column in a matrix (i.e. set a column in the matrix equal to a specific vector or something). The two previously mentioned functions return copies of the columns in the m and you can't assign a new value to it as far as I can see. Is this possible? Thanks in Advance, Aaron