Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,679 for Sort (0.06 sec)

  1. src/slices/sort.go

    // license that can be found in the LICENSE file.
    
    //go:generate go run $GOROOT/src/sort/gen_sort_variants.go -generic
    
    package slices
    
    import (
    	"cmp"
    	"math/bits"
    )
    
    // Sort sorts a slice of any ordered type in ascending order.
    // When sorting floating-point numbers, NaNs are ordered before other values.
    func Sort[S ~[]E, E cmp.Ordered](x S) {
    	n := len(x)
    	pdqsortOrdered(x, 0, n, bits.Len(uint(n)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/sort/sort.go

    func (x StringSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    // Sort is a convenience method: x.Sort() calls Sort(x).
    func (x StringSlice) Sort() { Sort(x) }
    
    // Convenience wrappers for common cases
    
    // Ints sorts a slice of ints in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.Sort].
    func Ints(x []int) { intsImpl(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. src/internal/fmtsort/sort.go

    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    // KeyValue holds a single key and value pair found in a map.
    type KeyValue struct {
    	Key, Value reflect.Value
    }
    
    // Sort accepts a map and returns a SortedMap that has the same keys and
    // values but in a stable sorted order according to the keys, modulo issues
    // raised by unorderable key values such as NaNs.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/partitioned-topological-sort.mlir

    // RUN: tf-opt %s -tfl-partitioned-topological-sort | FileCheck %s
    
    // CHECK-LABEL: @tf_ops_will_be_partitioned
    func.func @tf_ops_will_be_partitioned() -> tensor<1xf32> {
      %const = "tfl.pseudo_const"() {value = dense<[1.0]> : tensor<1xf32>} : () -> tensor<1xf32>
      %tmp1 = "tfl.add"(%const, %const) { fused_activation_function = "NONE" } : (tensor<1xf32>,tensor<1xf32>) -> (tensor<1xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 19 22:33:49 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  5. releasenotes/notes/json-log-sort.yaml

    John Howard <******@****.***> 1706030446 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 23 17:20:46 UTC 2024
    - 148 bytes
    - Viewed (0)
  6. releasenotes/notes/istioctl-sort-events-by-creation.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: istioctl
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 18:47:53 UTC 2023
    - 155 bytes
    - Viewed (0)
  7. src/sort/sort_slices_benchmark_test.go

    	for i := 0; i < b.N; i++ {
    		Sort(StringSlice(ss))
    	}
    }
    
    func BenchmarkSlicesSortStrings_Sorted(b *testing.B) {
    	ss := makeSortedStrings(N)
    	b.ResetTimer()
    
    	for i := 0; i < b.N; i++ {
    		slices.Sort(ss)
    	}
    }
    
    // These benchmarks compare sorting a slice of structs with sort.Sort vs.
    // slices.SortFunc.
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/orig/view/search.jsp

    				data-toggle="control-options"> <c:if test="${empty sort}">
    						<la:message key="labels.searchoptions_score" />
    					</c:if> <c:if test="${sort=='score.desc'}">
    						<la:message key="labels.searchoptions_score" />
    					</c:if> <c:if test="${sort=='filename.asc'}">
    						<la:message key="labels.search_result_sort_filename_asc" />
    					</c:if> <c:if test="${sort=='filename.desc'}">
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/view/search.jsp

    				data-toggle="control-options"> <c:if test="${empty sort}">
    						<la:message key="labels.searchoptions_score" />
    					</c:if> <c:if test="${sort=='score.desc'}">
    						<la:message key="labels.searchoptions_score" />
    					</c:if> <c:if test="${sort=='filename.asc'}">
    						<la:message key="labels.search_result_sort_filename_asc" />
    					</c:if> <c:if test="${sort=='filename.desc'}">
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top