On Sun, Apr 15, 2012 at 4:49 PM, Terry Reedy <tjre...@udel.edu> wrote: > On 4/15/2012 12:16 PM, Ian Kelly wrote: >> >> On Sat, Apr 14, 2012 at 8:57 PM, Shmuel  Metz >> <spamt...@library.lspace.org.invalid>  wrote: >>> >>> In<87aa2iz3l1....@kuiper.lan.informatimago.com>, on 04/11/2012 >>>  at 05:32 PM, "Pascal J. Bourguignon"<p...@informatimago.com>  said: >>> >>>> You're confused. C doesn't have arrays.  Lisp has arrays. C only has >>>> vectors >>> >>> >>> Neither C nor any other programming language has vectors ;-) >> >> >> AFAIK, C++ nomenclature notwithstanding, a vector is just an array >> with only one or indices, so all languages that have arrays have >> vectors. > > > Vectors are magnitude with direction, often represented by 1-d array of > projections on coordinate axes. If a = 1,2,3 and b = 3,2,1 are > (mathematical) vectors, then a+b = 4,4,4; 2*a = 2,4,6; and a*b = (3+4+3) = > 10.
I'm referring to the programming usage, not the mathematical usage. See definition #4 at dictionary.com, or definition #8 at wiktionary. -- http://mail.python.org/mailman/listinfo/python-list