Update numpy_helper ddot in case array is neither c_contiguous nor f_contiguous
Update numpy_helper ddot in case array is neither c_contiguous nor f_contiguous

This happens if input arrays are numpy ndarray slice views.

sunqm/pyscf,sunqm/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,sunqm/pyscf,sunqm/pyscf,gkc1000/pyscf,gkc1000/pyscf