@@ -1436,6 +1436,8 @@ base.sqrtf,"var y = base.sqrtf( 4.0 )\ny = base.sqrtf( 9.0 )\ny = base.sqrtf( 0.
14361436base.sqrtpi,"var y = base.sqrtpi( 4.0 )\ny = base.sqrtpi( 10.0 )\ny = base.sqrtpi( 0.0 )\ny = base.sqrtpi( -4.0 )\ny = base.sqrtpi( NaN )\n"
14371437base.strided.binary,"var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar shape = [ x.length ];\nvar strides = [ 1, 1, 1 ];\nfunction f( x, y ) { return x + y; };\nbase.strided.binary( [ x, y, z ], shape, strides, f );\nz\n"
14381438base.strided.binary.ndarray,"var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar z = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar shape = [ x.length ];\nvar strides = [ 1, 1, 1 ];\nvar offsets = [ 0, 0, 0 ];\nfunction f( x, y ) { return x + y; };\nbase.strided.binary.ndarray( [ x, y, z ], shape, strides, offsets, f );\nz\n"
1439+ base.strided.binaryDtypeSignatures,"var dt = strided.dataTypes();\nvar out = base.strided.binaryDtypeSignatures( dt, dt, dt )\n"
1440+ base.strided.binarySignatureCallbacks,"var dt = strided.dataTypes();\nvar sigs = base.strided.binaryDtypeSignatures( dt, dt, dt );\nvar t = {\n 'default': base.add,\n 'complex64': base.caddf,\n 'complex128': base.cadd\n };\nvar out = base.strided.binarySignatureCallbacks( t, sigs )\n"
14391441base.strided.ccopy,"var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Complex64Array( [ 6.0, 7.0, 8.0, 9.0 ] );\nbase.strided.ccopy( x.length, x, 1, y, 1 );\nvar z = y.get( 0 );\nvar re = realf( z )\nvar im = imag( z )\nx = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );\ny = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );\nvar N = base.floor( x.length / 2 );\nbase.strided.ccopy( N, x, -2, y, 1 );\nz = y.get( 0 );\nre = realf( z )\nim = imag( z )\nvar x0 = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );\nvar y0 = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );\nvar x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\nvar y1 = new Complex64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 );\nN = base.floor( x0.length / 2 );\nbase.strided.ccopy( N, x1, -2, y1, 1 );\nz = y0.get( 2 );\nre = realf( z )\nim = imag( z )\n"
14401442base.strided.ccopy.ndarray,"var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Complex64Array( [ 6.0, 7.0, 8.0, 9.0 ] );\nbase.strided.ccopy.ndarray( x.length, x, 1, 0, y, 1, 0 );\nvar z = y.get( 0 );\nvar re = realf( z )\nvar im = imag( z )\nx = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );\ny = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );\nvar N = base.floor( x.length / 2 );\nbase.strided.ccopy.ndarray( N, x, 2, 1, y, -1, y.length-1 );\nz = y.get( y.length-1 );\nre = realf( z )\nim = imag( z )\n"
14411443base.strided.cmap,"var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ];\nvar x = new Complex64Array( xbuf );\nvar y = new Complex64Array( x.length );\nbase.strided.cmap( x.length, x, 1, y, 1, base.cidentityf );\nvar v = y.get( 0 )\nvar re = real( v )\nvar im = imag( v )\ny = new Complex64Array( x.length );\nbase.strided.cmap( 2, x, 2, y, -1, base.cidentityf );\nv = y.get( 0 )\nre = real( v )\nim = imag( v )\nvar x0 = new Complex64Array( xbuf );\nvar y0 = new Complex64Array( x0.length );\nvar x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\nvar y1 = new Complex64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 );\nbase.strided.cmap( 2, x1, -2, y1, 1, base.cidentityf );\nv = y1.get( 0 )\nre = real( v )\nim = imag( v )\n"
@@ -2258,6 +2260,7 @@ base.strided.ternary,"var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y
22582260base.strided.ternary.ndarray,"var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar z = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );\nvar w = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar shape = [ x.length ];\nvar strides = [ 1, 1, 1, 1 ];\nvar offsets = [ 0, 0, 0, 0 ];\nfunction f( x, y, z ) { return x + y + z; };\nbase.strided.ternary.ndarray( [ x, y, z, w ], shape, strides, offsets, f );\nw\n"
22592261base.strided.unary,"var x = new Float64Array( [ -1.0, -2.0, -3.0, -4.0 ] );\nvar y = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar shape = [ x.length ];\nvar strides = [ 1, 1 ];\nbase.strided.unary( [ x, y ], shape, strides, base.abs );\ny\n"
22602262base.strided.unary.ndarray,"var x = new Float64Array( [ -1.0, -2.0, -3.0, -4.0 ] );\nvar y = new Float64Array( [ 0.0, 0.0, 0.0, 0.0 ] );\nvar shape = [ x.length ];\nvar strides = [ 1, 1 ];\nvar offsets = [ 0, 0 ];\nbase.strided.unary.ndarray( [ x, y ], shape, strides, offsets, base.abs );\ny\n"
2263+ base.strided.unaryDtypeSignatures,"var dt = strided.dataTypes();\nvar out = base.strided.unaryDtypeSignatures( dt, dt )\n"
22612264base.strided.variance,"var x = [ 1.0, -2.0, 2.0 ];\nbase.strided.variance( x.length, 1, x, 1 )\nx = [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0 ];\nvar N = base.floor( x.length / 2 );\nvar stride = 2;\nbase.strided.variance( N, 1, x, stride )\nvar x0 = new Float64Array( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );\nvar x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\nN = base.floor( x0.length / 2 );\nstride = 2;\nbase.strided.variance( N, 1, x1, stride )\n"
22622265base.strided.variance.ndarray,"var x = [ 1.0, -2.0, 2.0 ];\nbase.strided.variance.ndarray( x.length, 1, x, 1, 0 )\nvar x = [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ];\nvar N = base.floor( x.length / 2 );\nbase.strided.variance.ndarray( N, 1, x, 2, 1 )\n"
22632266base.strided.variancech,"var x = [ 1.0, -2.0, 2.0 ];\nbase.strided.variancech( x.length, 1, x, 1 )\nx = [ -2.0, 1.0, 1.0, -5.0, 2.0, -1.0 ];\nvar N = base.floor( x.length / 2 );\nvar stride = 2;\nbase.strided.variancech( N, 1, x, stride )\nvar x0 = new Float64Array( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );\nvar x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );\nN = base.floor( x0.length / 2 );\nstride = 2;\nbase.strided.variancech( N, 1, x1, stride )\n"
@@ -2297,6 +2300,7 @@ base.truncn,"var y = base.truncn( 3.14159, -4 )\ny = base.truncn( 3.14159, 0 )\n
22972300base.truncsd,"var y = base.truncsd( 3.14159, 5 )\ny = base.truncsd( 3.14159, 1 )\ny = base.truncsd( 12368.0, 2 )\ny = base.truncsd( 0.0313, 2, 2 )\n"
22982301base.umul,"var v = base.umul( 10>>>0, 4>>>0 )\n"
22992302base.umuldw,"var v = base.umuldw( 1, 10 )\n"
2303+ base.umuldw.assign,"var out = [ 0, 0 ];\nvar v = base.umuldw.assign( 1, 10, out, 1, 0 )\nvar bool = ( v === out )\n"
23002304base.uint32ToInt32,"var y = base.uint32ToInt32( base.float64ToUint32( 4294967295 ) )\ny = base.uint32ToInt32( base.float64ToUint32( 3 ) )\n"
23012305base.vercos,"var y = base.vercos( 3.14 )\ny = base.vercos( -4.2 )\ny = base.vercos( -4.6 )\ny = base.vercos( 9.5 )\ny = base.vercos( -0.0 )\n"
23022306base.versin,"var y = base.versin( 3.14 )\ny = base.versin( -4.2 )\ny = base.versin( -4.6 )\ny = base.versin( 9.5 )\ny = base.versin( -0.0 )\n"
0 commit comments