compare numpy and matlab for spatial computation