UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 816 B
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import r from"./../../assert/is-positive-integer.js";import e from"./../../assert/is-number.js";import i from"./mpcorr.js";var t=r.isPrimitive,n=e.isPrimitive,m=i;function a(r,e,i){var a;if(!t(r))throw new TypeError("invalid argument. First argument must be a positive integer. Value: `"+r+"`.");if(arguments.length>1){if(!n(e))throw new TypeError("invalid argument. Second argument must be a number primitive. Value: `"+e+"`.");if(!n(i))throw new TypeError("invalid argument. Third argument must be a number primitive. Value: `"+i+"`.");a=m(r,e,i)}else a=m(r);return u;function u(r,e){var i;return 0===arguments.length?null===(i=a())?i:i*i:(i=a(r,e))*i}}var u=a;export default u; //# sourceMappingURL=mpcorr2.js.map