Good use of reference arguments. However, I'm not sure that this form can be used with SWIG/numpy. Should validate that.