Re: Multiply a constant to a matrix column
- To: mathgroup at smc.vnet.net
- Subject: [mg16305] Re: Multiply a constant to a matrix column
- From: "Gianluca Cruciani" <giancruc at tin.it>
- Date: Sun, 7 Mar 1999 01:05:36 -0500
- Organization: TIN
- References: <7bo0gg$dop@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Example of multiplication by k of the i-th column of a matrix M(m,n): m=3;n=1000;i=2; M=Table[a[h,j],{h,n},{j,m}]; A=IdentityMatrix[m];A[[i,i]]=k; NewM=Transpose[A.Transpose[M]]