Python and numpy port of Nicholas Higham's m*lab test matrices
