MathGroup Archive 2000

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

Search the Archive

How to add a vector to a list of vectors?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26493] How to add a vector to a list of vectors?
  • From: AGUIRRE ESTIBALEZ Julian <mtpagesj at lg.ehu.es>
  • Date: Thu, 28 Dec 2000 21:31:28 -0500 (EST)
  • Organization: Universidad del Pais Vasco/Euskal Herriko Unibertsitatea
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Group,

	I have a list of vectors l = {v1,...,vn} and another vector w, all
of the same length. I wat to get the list {w + v1, ..., w + vn} .

	l + w does not work.

Is there a simpler (or more efficient) way than

	Table[w + l[[i]],{i, Length at l}] ? 

Julian Aguirre
Universidad del Pais Vasco



  • Prev by Date: HELP! Working version of "The Knife" package?
  • Next by Date: Launch Directory
  • Previous by thread: HELP! Working version of "The Knife" package?
  • Next by thread: Re: How to add a vector to a list of vectors?