Hi,
I have a scalar value S. I want to perform the following math on vectors A
and B (both of type array):
A + B * S
By order of operations, B * S should be done first. This is a vector
multiplied by a real number and should be valid. However, the interpreter
outputs:
"ValueError: shape mism
wever, this method only appears
to work with 2D vectors. And yes, by magnitude I mean euclidean norm:
sqrt( x*x + y*y ) = magnitude (length) of a vector
On 9/5/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Thanks for your response.
>
> I was not able to find len() in the num
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:
>
>
>
>
Hi,
I have two questions:
1) Is there any way in numpy to represent vectors? Currently I'm using
'array' for vectors.
2) Is there a way to calculate the magnitude (length) of a vector in numpy?
Thanks.
___
Numpy-discussion mailing list
Numpy-discussio