convert a ROOT matrix into a NumPy matrix