Numpy convenience methods.