Thanks for your response. I was not able to find len() in the numpy documentation at the following link: http://www.scipy.org/doc/numpy_api_docs/namespace_index.html
Perhaps I'm looking in the wrong location? On 9/5/07, Matthieu Brucher <[EMAIL PROTECTED]> wrote: > > > > 2007/9/5, Robert Dailey <[EMAIL PROTECTED]>: > > > > Hi, > > > > I have two questions: > > > > 1) Is there any way in numpy to represent vectors? Currently I'm using > > 'array' for vectors. > > > > A vector is an array with one dimension, it's OK. You could use a matrix > of dimension 1xn or nx1 as well. > > > 2) Is there a way to calculate the magnitude (length) of a vector in > > numpy? > > > Yes, len(a) > > Matthieu > > _______________________________________________ > Numpy-discussion mailing list > [email protected] > http://projects.scipy.org/mailman/listinfo/numpy-discussion > >
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
