Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Multiplication (0.34 sec)

  1. src/crypto/internal/bigmod/nat.go

    // n = len(m.nat.limbs).
    //
    // Faster Montgomery multiplication replaces standard modular multiplication for
    // numbers in this representation.
    //
    // This assumes that x is already reduced mod m.
    func (x *Nat) montgomeryRepresentation(m *Modulus) *Nat {
    	// A Montgomery multiplication (which computes a * b / R) by R * R works out
    	// to a multiplication by R, which takes the value out of the Montgomery domain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/cpu.go

    	HasASIMD    bool // Advanced SIMD (always available)
    	HasEVTSTRM  bool // Event stream support
    	HasAES      bool // AES hardware implementation
    	HasPMULL    bool // Polynomial multiplication instruction set
    	HasSHA1     bool // SHA1 hardware implementation
    	HasSHA2     bool // SHA2 hardware implementation
    	HasCRC32    bool // CRC32 hardware implementation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/math/big/natdiv.go

    which can be handled without a recursive call. That is, the algorithm uses two
    full iterations, each using an n-by-n/2-digit division and an n/2-by-n/2-digit
    multiplication, along with a few n-digit additions and subtractions. The standard
    n-by-n-digit multiplication algorithm requires O(n²) time, making the overall
    algorithm require time T(n) where
    
    	T(n) = 2T(n/2) + O(n) + O(n²)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  4. src/math/big/nat.go

    func karatsuba(z, x, y nat) {
    	n := len(y)
    
    	// Switch to basic multiplication if numbers are odd or small.
    	// (n is always even if karatsubaThreshold is even, but be
    	// conservative)
    	if n&1 != 0 || n < karatsubaThreshold || n < 2 {
    		basicMul(z, x, y)
    		return
    	}
    	// n&1 == 0 && n >= karatsubaThreshold && n >= 2
    
    	// Karatsuba multiplication is based on the observation that
    	// for two numbers x and y with:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. src/runtime/slice.go

    	var overflow bool
    	var lenmem, newlenmem, capmem uintptr
    	// Specialize for common values of et.Size.
    	// For 1 we don't need any division/multiplication.
    	// For goarch.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
    	// For powers of 2, use a variable shift.
    	noscan := !et.Pointers()
    	switch {
    	case et.Size_ == 1:
    		lenmem = uintptr(oldLen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/magic.go

    package ssa
    
    import (
    	"math/big"
    	"math/bits"
    )
    
    // So you want to compute x / c for some constant c?
    // Machine division instructions are slow, so we try to
    // compute this division with a multiplication + a few
    // other cheap instructions instead.
    // (We assume here that c != 0, +/- 1, or +/- 2^i.  Those
    // cases are easy to handle in different ways).
    
    // Technique from https://gmplib.org/~tege/divcnst-pldi94.pdf
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            return self.bias_fn() and self.bias_size != self.filters.shape[-1]
    
          @def_function.function
          def matmul(self, input_tensor: core.Tensor) -> Mapping[str, core.Tensor]:
            """Performs a matrix multiplication.
    
            Depending on self.bias_fn and self.activation_fn, it may add a bias
            term or go through the activaction function.
    
            Args:
              input_tensor: Input tensor to matmul with the filter.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        // [-512, 512], instead of [-32767, 32767].
        // For now this behavior is specific for SVDF, where 6 bits are reserved for
        // the reduce operation after element-wise multiplication between state and
        // time weights.
        if (tensor_property.number_of_bits == 10) {
          SmallVector<double, 4> mins(1, std::numeric_limits<double>::max());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

      }
    
      const int64_t rows = lhs_shape[lhs_dims - 2];
      const int64_t cols = rhs_shape[rhs_dims - 1];
    
      if (lhs_shape[lhs_dims - 1] != rhs_shape[rhs_dims - 2]) {
        // Input dimensions must be compatible for multiplication.
        return failure();
      }
    
      const auto matmul_type = RankedTensorType::get({rows, cols}, element_type);
    
      if (lhs_dims == 2 && rhs_dims == 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top