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 1Darrays 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)
