@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 984 B
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import e from"./../assert/is-float64vector-like.js";import r from"./base/dswap.js";var n=e,a=r.ndarray;function t(e,r){if(!n(e))throw new TypeError("invalid argument. First argument must be a 1-dimensional ndarray containing double-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float64Array). Value: `"+e+"`.");if(!n(r))throw new TypeError("invalid argument. Second argument must be a 1-dimensional ndarray containing double-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float64Array). Value: `"+r+"`.");if(e.length!==r.length)throw new RangeError("invalid argument. Arrays must be the same length. First argument length: "+e.length+". Second argument length: "+r.length+".");return a(e.length,e.data,e.strides[0],e.offset,r.data,r.strides[0],r.offset),r}export default t;
//# sourceMappingURL=dswap.js.map