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
- Follow-Ups:
- Re: How to add a vector to a list of vectors?
- From: Ken Levasseur <Kenneth_Levasseur@uml.edu>
- Re: How to add a vector to a list of vectors?