UNPKG

@stdlib/esm

Version:

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

3 lines 888 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";function n(r,n,o,e){var f,a,i,t,u,d,l,p,m,v,y,c,s,b,j,x,g,h,k,q;if(!((k=n[0])<=0))for(l=(f=o[0])<0?(1-k)*f:0,p=(a=o[1])<0?(1-k)*a:0,m=(i=o[2])<0?(1-k)*i:0,v=(t=o[3])<0?(1-k)*t:0,y=(u=o[4])<0?(1-k)*u:0,c=(d=o[5])<0?(1-k)*d:0,s=r[0],b=r[1],j=r[2],x=r[3],g=r[4],h=r[5],q=0;q<k;q++)h[c]=e(s[l],b[p],j[m],x[v],g[y]),l+=f,p+=a,m+=i,v+=t,y+=u,c+=d}function o(r,n,o,e,f){var a,i,t,u,d,l,p,m,v,y,c,s,b,j,x,g,h,k,q,w;if(!((q=n[0])<=0))for(p=e[0],m=e[1],v=e[2],y=e[3],c=e[4],s=e[5],a=o[0],i=o[1],t=o[2],u=o[3],d=o[4],l=o[5],b=r[0],j=r[1],x=r[2],g=r[3],h=r[4],k=r[5],w=0;w<q;w++)k[s]=f(b[p],j[m],x[v],g[y],h[c]),p+=a,m+=i,v+=t,y+=u,c+=d,s+=l}var e=r,f=n,a=o;e(f,"ndarray",a);export default f; //# sourceMappingURL=quinary.js.map