Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,873 for Invert (0.24 sec)

  1. platforms/core-configuration/stdlib-kotlin-extensions/src/main/kotlin/org/gradle/internal/extensions/stdlib/MapExtensions.kt

    
    /**
     * Inverts the given map by swapping its keys with their corresponding values and returns the resulting map.
     *
     * If the original map contains duplicate values, the resulting map will map each value to the key associated
     * with the last occurrence of that value in the original map's iteration order.
     */
    fun <K, V> Map<K, V>.invert() = HashMap<V, K>(size).also { result ->
        forEach { (k, v) ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe_bench_test.go

    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Square(x)
    	}
    }
    
    func BenchmarkInvert(b *testing.B) {
    	x := new(Element).Add(feOne, feOne)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Invert(x)
    	}
    }
    
    func BenchmarkMult32(b *testing.B) {
    	x := new(Element).One()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		x.Mult32(x, 0xaa42aa42)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 924 bytes
    - Viewed (0)
  3. src/net/ipsock_test.go

    	}
    	for i, tt := range cases {
    		// Inverting the function's output should not affect the outcome.
    		for _, invert := range []bool{false, true} {
    			primaries, fallbacks := addrs.partition(func(a Addr) bool {
    				ip := a.(*IPAddr).IP
    				return (ip[len(ip)-1] == tt.lastByte) != invert
    			})
    			if !reflect.DeepEqual(primaries, tt.primaries) {
    				t.Errorf("#%v: got %v; want %v", i, primaries, tt.primaries)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 15 22:22:09 UTC 2017
    - 6.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializer.kt

    import org.gradle.internal.cc.impl.services.IsolatedActionCodecsFactory
    import org.gradle.internal.configuration.problems.PropertyProblem
    import org.gradle.internal.cc.base.logger
    import org.gradle.internal.extensions.stdlib.invert
    import org.gradle.internal.extensions.stdlib.uncheckedCast
    import org.gradle.internal.extensions.stdlib.useToRun
    import org.gradle.internal.serialize.graph.BeanStateReaderLookup
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/xcodeproj/FileTypes.java

        }
    
        /**
         * Multimap of Apple UTI (Uniform Type Identifier) to file extension(s).
         */
        public static final ImmutableMultimap<String, String> UTI_TO_FILE_EXTENSIONS;
    
        static {
            // Invert the map of (file extension -> UTI) pairs to
            // (UTI -> [file extension 1, ...]) pairs.
            ImmutableMultimap.Builder<String, String> builder = ImmutableMultimap.builder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/field/fe.go

    }
    
    // Negate sets v = -a, and returns v.
    func (v *Element) Negate(a *Element) *Element {
    	return v.Subtract(feZero, a)
    }
    
    // Invert sets v = 1/z mod p, and returns v.
    //
    // If z == 0, Invert returns v = 0.
    func (v *Element) Invert(z *Element) *Element {
    	// Inversion is implemented as exponentiation with exponent p − 2. It uses the
    	// same sequence of 255 squarings and 11 multiplications as [Curve25519].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. src/crypto/internal/edwards25519/field/fe_test.go

    	one := Element{1, 0, 0, 0, 0}
    	var xinv, r Element
    
    	xinv.Invert(&x)
    	r.Multiply(&x, &xinv)
    	r.reduce()
    
    	if one != r {
    		t.Errorf("inversion identity failed, got: %x", r)
    	}
    
    	var bytes [32]byte
    
    	_, err := io.ReadFull(rand.Reader, bytes[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	x.SetBytes(bytes[:])
    
    	xinv.Invert(&x)
    	r.Multiply(&x, &xinv)
    	r.reduce()
    
    	if one != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  8. src/crypto/ecdh/x25519.go

    		z2.Square(&z2)
    
    		z3.Mult32(&tmp1, 121666)
    		x3.Square(&x3)
    		tmp0.Add(&tmp0, &z3)
    		z3.Multiply(&x1, &z2)
    		z2.Multiply(&tmp1, &tmp0)
    	}
    
    	x2.Swap(&x3, swap)
    	z2.Swap(&z3, swap)
    
    	z2.Invert(&z2)
    	x2.Multiply(&x2, &z2)
    	copy(dst[:], x2.Bytes())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc

          >();
    }
    
    OpFoldResult StorageCastOp::fold(FoldAdaptor) {
      // Matches x -> [scast -> scast] -> y, replacing the second scast with the
      // value of x if the casts invert each other.
      auto srcScastOp = getArg().getDefiningOp<StorageCastOp>();
      if (!srcScastOp || srcScastOp.getArg().getType() != getType())
        return OpFoldResult();
      return srcScastOp.getArg();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc

          >();
    }
    
    OpFoldResult StorageCastOp::fold(FoldAdaptor) {
      // Matches x -> [scast -> scast] -> y, replacing the second scast with the
      // value of x if the casts invert each other.
      auto srcScastOp = getArg().getDefiningOp<StorageCastOp>();
      if (!srcScastOp || srcScastOp.getArg().getType() != getType())
        return OpFoldResult();
      return srcScastOp.getArg();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top