In general, for best performance, especially for large vectors, provide 1-dimensional ndarrays whose underlying data type is either float64 or float32.
throws
first argument must be either an array-like object or a 1-dimensional ndarray
throws
second argument must be either an array-like object or a 1-dimensional ndarray
Interchanges two vectors.
Notes
ndarrays
whose underlying data type is eitherfloat64
orfloat32
.first argument must be either an array-like object or a 1-dimensional
ndarray
second argument must be either an array-like object or a 1-dimensional
ndarray
input arrays must be the same length