[SciPy-user] printing an entire matrix

Robert Kern robert.kern@gmail....
Thu Sep 20 21:51:13 CDT 2007


Perez Kawumi wrote:
> Hi,
> i need to check if all the values in a matrix are right. however, python
> only allows me to check the the first and last three rows. is there a
> way i can see the entire matrix. It's an 84*84 matrix whose contents I
> want to verify.

import sys
import numpy
numpy.set_printoptions(threshold=sys.maxint)

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list