UNPKG

@stdlib/esm

Version:

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

3 lines 886 B
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import r from"./../../utils/define-nonenumerable-read-only-property.js";var f=5;function n(r,n,e,t,o){var i,u,a,v,d;if(i=0,r<=0)return i;if(1===e&&1===o){if((v=r%f)>0)for(d=0;d<v;d++)i+=n[d]*t[d];if(r<f)return i;for(d=v;d<r;d+=f)i+=n[d]*t[d]+n[d+1]*t[d+1]+n[d+2]*t[d+2]+n[d+3]*t[d+3]+n[d+4]*t[d+4];return i}for(u=e<0?(1-r)*e:0,a=o<0?(1-r)*o:0,d=0;d<r;d++)i+=n[u]*t[a],u+=e,a+=o;return i}var e=5;function t(r,f,n,t,o,i,u){var a,v,d,l,p;if(a=0,r<=0)return a;if(v=t,d=u,1===n&&1===i){if((l=r%e)>0)for(p=0;p<l;p++)a+=f[v]*o[d],v+=1,d+=1;if(r<e)return a;for(p=l;p<r;p+=e)a+=f[v]*o[d]+f[v+1]*o[d+1]+f[v+2]*o[d+2]+f[v+3]*o[d+3]+f[v+4]*o[d+4],v+=e,d+=e;return a}for(p=0;p<r;p++)a+=f[v]*o[d],v+=n,d+=i;return a}var o=r,i=n,u=t;o(i,"ndarray",u);export default i; //# sourceMappingURL=dsdot.js.map