Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Multiplying a vector over multiple vectors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91166] Re: Multiplying a vector over multiple vectors
  • From: Albert Retey <awnl at gmx-topmail.de>
  • Date: Fri, 8 Aug 2008 07:13:44 -0400 (EDT)
  • References: <g7ed6u$2pm$1@smc.vnet.net>

Hi,
> 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}}

Thread[Times[Transpose@{{1, 2}, {3, 4}, {5, 6}}, {a, b}]]

hth,

albert


  • Prev by Date: Re: Use of RuleDelayed in PaneSelector
  • Next by Date: Using URW Palladio L font in graphs
  • Previous by thread: Re: Multiplying a vector over multiple vectors
  • Next by thread: Re: Multiplying a vector over multiple vectors