BUG: incorrect argument order to _copyto in in np.nanmax, np.nanmin
Add tests using matrices
Merge pull request #4628 from mhvk/nanfunctions-copyto-call

BUG: incorrect argument order to _copyto in in np.nanmax, np.nanmin