Re: vector[m,1] vector[n,1] matrix[m,n]
- To: mathgroup at smc.vnet.net
- Subject: [mg116019] Re: vector[m,1] vector[n,1] matrix[m,n]
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Sat, 29 Jan 2011 05:27:30 -0500 (EST)
I think that's called an outer product: mv = Array[m, {5}] nv = Array[n, {3}] {m[1], m[2], m[3], m[4], m[5]} {n[1], n[2], n[3]} Outer[Times, mv, nv] {{m[1] n[1], m[1] n[2], m[1] n[3]}, {m[2] n[1], m[2] n[2], m[2] n[3]}, {m[3] n[1], m[3] n[2], m[3] n[3]}, {m[4] n[1], m[4] n[2], m[4] n[3]}, {m[5] n[1], m[5] n[2], m[5] n[3]}} Bobby On Fri, 28 Jan 2011 05:11:09 -0600, EF <he.frauendorfer at t-online.de> wrote: > Hi, > > is there a "simple kernel based" routine to do the scalar product of two > one dimensional vectors, producing the m,n Matrix: > > v1[m,1].v2[n,1] -> mat[m,n] > > > > Thanks E.F. > -- DrMajorBob at yahoo.com