MathGroup Archive 2000

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

Search the Archive

How to add a vector to a list of vectors?


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?