Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CMul (0.04 sec)

  1. test/chan/powser2.go

    		uv := get2(U, V)
    		if end(uv[0].(*rat)) != 0 || end(uv[1].(*rat)) != 0 {
    			Z.dat <- finis
    		} else {
    			Z.dat <- mul(uv[0].(*rat), uv[1].(*rat))
    			UU := Split(U)
    			VV := Split(V)
    			W := Add(Cmul(uv[0].(*rat), VV[0]), Cmul(uv[1].(*rat), UU[0]))
    			<-Z.req
    			Z.dat <- get(W)
    			copy(Add(W, Mul(UU[1], VV[1])), Z)
    		}
    	}(U, V, Z)
    	return Z
    }
    
    // Differentiate
    
    func Diff(U PS) PS {
    	Z := mkPS()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 13.3K bytes
    - Viewed (0)
  2. test/chan/powser1.go

    // Multiply a power series by a constant
    func Cmul(c rat, U PS) PS {
    	Z := mkPS()
    	go func() {
    		done := false
    		for !done {
    			<-Z.req
    			u := get(U)
    			if end(u) != 0 {
    				done = true
    			} else {
    				Z.dat <- mul(c, u)
    			}
    		}
    		Z.dat <- finis
    	}()
    	return Z
    }
    
    // Subtract
    
    func Sub(U, V PS) PS {
    	return Add(U, Cmul(neg(one), V))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 22:22:20 UTC 2020
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

        // CHECK: mhlo.constant dense<[0, 1, 2]> : tensor<3xi64>
        // CHECK-NEXT: %[[cmul:.*]] = mhlo.convert %[[mul]] : tensor<8x8x8x8xf32>
        // CHECK-NEXT: %[[init:.*]] = mhlo.constant dense<0.000000e+00> : tensor<f32>
        // CHECK-NEXT: %[[convert_init:.*]] = mhlo.convert %[[init]] : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // CHECK-NEXT: mhlo.constant dense<[0, 1, 2]> : tensor<3xi64>
      // CHECK-NEXT: %[[cmul:.*]] = mhlo.convert %[[mul]] : tensor<8x8x8x8xf32>
      // CHECK-NEXT: %[[init:.*]] = mhlo.constant dense<-0.000000e+00> : tensor<f32>
      // CHECK-NEXT: %[[red1:.*]] = mhlo.reduce(%[[cmul]] init: %[[init]]) applies mhlo.add across dimensions = [0, 1, 2] : (tensor<8x8x8x8xf32>, tensor<f32>) -> tensor<8xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
Back to top