Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 591 for elem3 (0.05 sec)

  1. src/go/types/index.go

    			case *Array:
    				l = t.len
    				e = t.elem
    				if x.mode != variable {
    					mode = value
    				}
    			case *Pointer:
    				if t, _ := under(t.base).(*Array); t != nil {
    					l = t.len
    					e = t.elem
    				}
    			case *Slice:
    				e = t.elem
    			case *Map:
    				k = t.key
    				e = t.elem
    			}
    			if e == nil {
    				return false
    			}
    			if elem == nil {
    				// first type
    				length = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/range.go

    		if nn := arrayRangeClear(nrange, v1, v2, a); nn != nil {
    			base.Pos = lno
    			return nn
    		}
    
    		// Element type of the iteration
    		var elem *types.Type
    		switch t.Kind() {
    		case types.TSLICE, types.TARRAY:
    			elem = t.Elem()
    		case types.TPTR:
    			elem = t.Elem().Elem()
    		}
    
    		// order.stmt arranged for a copy of the array/slice variable if needed.
    		ha := a
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/race/testdata/reflect_test.go

    	ch := make(chan bool, 1)
    	i := 0
    	v := reflect.ValueOf(&i)
    	go func() {
    		v.Elem().Set(reflect.ValueOf(1))
    		ch <- true
    	}()
    	_ = v.Elem().Int()
    	<-ch
    }
    
    func TestRaceReflectWW(t *testing.T) {
    	ch := make(chan bool, 1)
    	i := 0
    	v := reflect.ValueOf(&i)
    	go func() {
    		v.Elem().Set(reflect.ValueOf(1))
    		ch <- true
    	}()
    	v.Elem().Set(reflect.ValueOf(2))
    	<-ch
    }
    
    func TestRaceReflectCopyWW(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 13:12:15 UTC 2016
    - 811 bytes
    - Viewed (0)
  4. tensorflow/cc/framework/ops.cc

      size_t offset = 0;
      for (auto const& e : v) {
        Tensor elem = e.tensor;
        if (first.tensor.dtype() == DT_STRING) {
          for (int i = 0; i < elem.NumElements(); ++i) {
            t.flat<tstring>()(offset + i) = elem.flat<tstring>()(i);
          }
          offset += elem.NumElements();
        } else {
          std::copy_n(elem.tensor_data().data(), elem.TotalBytes(),
                      const_cast<char*>(t.tensor_data().data()) + offset);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  5. src/testing/quick/quick.go

    			v.Elem().Set(elem)
    		}
    	case reflect.Slice:
    		numElems := rand.Intn(size)
    		sizeLeft := size - numElems
    		v.Set(reflect.MakeSlice(concrete, numElems, numElems))
    		for i := 0; i < numElems; i++ {
    			elem, ok := sizedValue(concrete.Elem(), rand, sizeLeft)
    			if !ok {
    				return reflect.Value{}, false
    			}
    			v.Index(i).Set(elem)
    		}
    	case reflect.Array:
    		for i := 0; i < v.Len(); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/search.go

    				return nil
    			}
    
    			want := true
    			elem := ""
    
    			// Don't use GOROOT/src but do walk down into it.
    			if pkgDir == root {
    				if importPathRoot == "" {
    					return nil
    				}
    			} else {
    				// Avoid .foo, _foo, and testdata subdirectory trees.
    				_, elem = filepath.Split(pkgDir)
    				if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" {
    					want = false
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/path/filepath/path_unix.go

    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_plan9.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    	}
    	return ""
    }
    
    func sameWord(a, b string) bool {
    	return a == b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 970 bytes
    - Viewed (0)
  8. test/fixedbugs/bug027.go

    import "fmt"
    
    type Element interface {
    }
    
    type Vector struct {
    	nelem int
    	elem  []Element
    }
    
    func New() *Vector {
    	v := new(Vector)
    	v.nelem = 0
    	v.elem = make([]Element, 10)
    	return v
    }
    
    func (v *Vector) At(i int) Element {
    	return v.elem[i]
    }
    
    func (v *Vector) Insert(e Element) {
    	v.elem[v.nelem] = e
    	v.nelem++
    }
    
    func main() {
    	type I struct{ val int }
    	i0 := new(I)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/nodes.go

    		ElemList []Expr
    		expr
    	}
    
    	// [Len]Elem
    	ArrayType struct {
    		// TODO(gri) consider using Name{"..."} instead of nil (permits attaching of comments)
    		Len  Expr // nil means Len is ...
    		Elem Expr
    		expr
    	}
    
    	// []Elem
    	SliceType struct {
    		Elem Expr
    		expr
    	}
    
    	// ...Elem
    	DotsType struct {
    		Elem Expr
    		expr
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            for (Map<String, Object> elem : jobLogList) {
                deleteMethod("/api/admin/joblog/log/" + elem.get("id"));
            }
    
            final List<Map<String, Object>> crawlingInfoList = readCrawlingInfo(webConfigId);
            for (Map<String, Object> elem : crawlingInfoList) {
                deleteMethod("/api/admin/crawlinginfo/log/" + elem.get("id"));
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top