turning 'lists' into matrices...



On 2012-09-07, Evan Cooch <evan.cooch at gmail.com> wrote:

> Relative newbie. Trying to extract eigenvectors from square, 
> non-negative matrices, and toss them into a matrix (which I can then 
> invert - part of some diagonilization stuff I'm trying to demonstrate in 
> class).

Well, ignoring problems with degenerate matrices, I think you can get
what you want like this:

  [vals, vecs] : eigenvectors (a);
  apply (matrix, apply (append, vecs));

Maybe you want transpose(%) after that, so the eigenvectors are in
columns.

Hope this helps,

Robert Dodier