MathGroup Archive 2008

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

Search the Archive

Re: Multiplying a vector over multiple vectors


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