Keith Goodman schrieb: > How do I make a NxN diagonal matrix with a Nx1 column vector x along > the diagonal? > >>> help(n.diag) Help on function diag in module numpy.lib.twodim_base: diag(v, k=0) returns the k-th diagonal if v is a array or returns a array with v as the k-th diagonal if v is a vector.