Multiplying a vector over multiple vectors
- To: mathgroup at smc.vnet.net
- Subject: [mg91150] Multiplying a vector over multiple vectors
- From: Donald DuBois <donabc at comcast.net>
- Date: Thu, 7 Aug 2008 04:42:07 -0400 (EDT)
How does one get a vector to distribute over a list of vectors under multiplication? For example: {{1,2}, {3,4}, {5,6}} times {a,b} should equal (under this operation) {{a, 2b}, {3a, 4b}, {5a, 6b}} If {a,b} is duplicated three times one can use MapThread as in: MapThread[Times, {{{1, 2}, {3, 4}, {5, 6}}, {{a, b}, {a, b}, {a, b}}}] but duplicating {a,b} using Table is very slow when the vectors are large (consisting of thousands of elemets). Thanks in advance for any help you can give me. Don
- Follow-Ups:
- Re: Multiplying a vector over multiple vectors
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Multiplying a vector over multiple vectors
- From: Oliver Ruebenkoenig <ruebenko@wolfram.com>
- Re: Multiplying a vector over multiple vectors
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: Multiplying a vector over multiple vectors