<br><br><div><span class="gmail_quote">2007/9/5, Robert Dailey <<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I have two questions:<br><br>1) Is there any way in numpy to represent vectors? Currently I'm using 'array' for vectors.</blockquote><div><br><br>A vector is an array with one dimension, it's OK. You could use a matrix of dimension 1xn or nx1 as well.
<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2) Is there a way to calculate the magnitude (length) of a vector in numpy?</blockquote>
</div><br>Yes, len(a)<br><br>Matthieu<br>