Re: How to add a vector to a list of vectors?
- To: mathgroup at smc.vnet.net
- Subject: [mg26505] Re: [mg26493] How to add a vector to a list of vectors?
- From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
- Date: Sat, 30 Dec 2000 01:55:18 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
This is very fast:
Transpose[Transpose[l]+w]
Tomas Garza
Mexico City
Original Message:
-----------------
From: AGUIRRE ESTIBALEZ Julian mtpagesj at lg.ehu.es
To: mathgroup at smc.vnet.net
Subject: [mg26505] [mg26493] 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
-------------------------------------------------------------------
This message has been posted from Mail2Web http://www.mail2web.com/
Web Hosting for $9.95 per month! Visit: http://www.yourhosting.com/
-------------------------------------------------------------------