python : NumPy : Array, Matrix Formatting
Formatting with NumPy ...
One dimensional arrays are then printed as rows, bidimensionals as matrices and tridimensionals as lists of matrices.
Code is essentially...
And the output is...
Add this, or some variant, to your code...
set_printoptions() : http://docs.scipy.org/doc/numpy/refe...ntoptions.html
Thanks for sharing. Off the Zero Reply List.
It originally began as a question.
I searched the forum and could not find anything... I am not authorised to create my own tags, but I though NumPy would have been a good tag for this post... so I decided to dig through the documentation.
Some time later I thought I'd share the conclusions to save others the time and give the forum another search result.
|All times are GMT -5. The time now is 05:05 PM.|