Added conversion of momentum term into 0 dimensional ndarray of dtype numpy.float32.