MathGroup Archive 2001

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

Search the Archive

Re: How to add a vector to a list of vectors?


Hi,

(w+#) & /@ l

???

Regards
  Jens

AGUIRRE ESTIBALEZ Julian wrote:
>
> 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@l}] ?
>
> Julian Aguirre
> Universidad del Pais Vasco


  • Prev by Date: Re: How can I transform the number of 123.456 into "123.456"?
  • Next by Date: Looking for Generalized SVD or C-S decomposition Mathematica code
  • Previous by thread: Re: Can I make this shape?
  • Next by thread: Re: How to add a vector to a list of vectors?