Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Universe (0.26 sec)

  1. src/encoding/xml/marshal_test.go

    	{Value: &Movie{Length: 13440}, ExpectXML: `<movie>13440</movie>`},
    	{Value: &Pi{Approximation: 3.14159265}, ExpectXML: `<pi>3.1415927</pi>`},
    	{Value: &Universe{Visible: 9.3e13}, ExpectXML: `<universe>9.3e+13</universe>`},
    	{Value: &Particle{HasMass: true}, ExpectXML: `<particle>true</particle>`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    			ident.Obj = obj
    			return
    		}
    	}
    	// all local scopes are known, so any unresolved identifier
    	// must be found either in the file scope, package scope
    	// (perhaps in another file), or universe scope --- collect
    	// them so that they can be resolved later
    	ident.Obj = unresolved
    	p.unresolved = append(p.unresolved, ident)
    }
    
    // ----------------------------------------------------------------------------
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    func TestScopeLookupParent(t *testing.T) {
    	imports := make(testImporter)
    	conf := Config{
    		Importer:    imports,
    		EnableAlias: true, // must match default Universe.Lookup behavior
    	}
    	var info Info
    	makePkg := func(path, src string) {
    		var err error
    		imports[path], err = conf.Check(path, []*syntax.File{mustParse(src)}, &info)
    		if err != nil {
    			t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    func TestAnyHijacking_Lookup(t *testing.T) {
    	for _, enableAlias := range []bool{false, true} {
    		t.Run(fmt.Sprintf("EnableAlias=%t", enableAlias), func(t *testing.T) {
    			setGotypesalias(t, enableAlias)
    			a := Universe.Lookup("any")
    			if _, gotAlias := a.Type().(*Alias); gotAlias != enableAlias {
    				t.Errorf(`Lookup("x").Type() is %T: got Alias: %t, want %t`, a.Type(), gotAlias, enableAlias)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        /* No aliasing on inverse operations. */
        assertSame(unmod.inverse(), unmod.inverse());
        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
        mod.put(4, "four");
        assertEquals(true, unmod.get(4).equals("four"));
        assertEquals(true, unmod.inverse().get("four").equals(4));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

        return failure();
      }
    
      return success();
    }
    
    // Matches the inverse scales operand for the uniform_quantize and
    // uniform_dequantize functions. Returns `failure()` if it doesn't match.
    LogicalResult MatchInverseScalesOperand(Value inverse_scales) {
      if (!inverse_scales) {
        LLVM_DEBUG(llvm::dbgs() << "Inverse scales value is empty.\n");
        return failure();
      }
    
      auto inverse_scales_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  7. src/math/big/int_test.go

    }
    
    func TestModInverse(t *testing.T) {
    	var element, modulus, gcd, inverse Int
    	one := NewInt(1)
    	for _, test := range modInverseTests {
    		(&element).SetString(test.element, 10)
    		(&modulus).SetString(test.modulus, 10)
    		(&inverse).ModInverse(&element, &modulus)
    		(&inverse).Mul(&inverse, &element)
    		(&inverse).Mod(&inverse, &modulus)
    		if (&inverse).Cmp(one) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Synchronized.java

            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
            if (inverse == null) {
              inverse = new SynchronizedBiMap<>(delegate().inverse(), mutex, this);
            }
            return inverse;
          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Synchronized.java

            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
            if (inverse == null) {
              inverse = new SynchronizedBiMap<>(delegate().inverse(), mutex, this);
            }
            return inverse;
          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 57.3K bytes
    - Viewed (0)
  10. src/index/suffixarray/sais2.go

    		c0, c1 = text[i], c0
    		if c0 < c1 {
    			isTypeS = true
    		} else if c0 > c1 && isTypeS {
    			isTypeS = false
    
    			// Populate inverse map.
    			j--
    			unmap[j] = int64(i + 1)
    		}
    	}
    
    	// Apply inverse map to subproblem suffix array.
    	sa = sa[:numLMS]
    	for i := 0; i < len(sa); i++ {
    		sa[i] = unmap[sa[i]]
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top