Robert Dailey wrote: > 1) Is there any way to represent vectors? Currently I'm using 'array' > for vectors. There is no explicit 'vector' representation. You may view vectors as either column or row vectors and represent them as 1xN or Nx1 matrices. In that case, the linear algebra like matrix products etc. can be used rather elegantly. Otherwise, you just use 1D-arrays and take care of the vector semantics yourself.
> 2) Is there a way to calculate the magnitude (length) of a vector? numpy.linalg.norm(X) (works for vectors as well as matrices) ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users