[PYTHON MATRIX-SIG] Nested list representation of an array
Jim Hugunin
hugunin@mit.edu
Mon, 28 Oct 1996 12:55:04 -0500
> Does anyone know an efficient way to obtain a nested list
> representation of an array? list() will handle only the first
> axis. The best I can come up with is a recursive definition:
Not sure this is in the docs yet, but a.tolist() will do what you want
quite efficiently.
-Jim
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================