- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 354 for COMPARE (0.3 sec)
-
operator/pkg/compare/compare.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package compare import ( "fmt" "io" "path/filepath" "reflect" "regexp" "sort" "strings" "github.com/google/go-cmp/cmp" "sigs.k8s.io/yaml" "istio.io/istio/operator/pkg/object"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
// - bool compares false before true // - complex compares real, then imag // - pointers compare by machine address // - channel values compare by machine address // - structs compare each field in turn // - arrays compare each element in turn. // Otherwise identical arrays compare by length. // - interface values compare first by reflect.Type describing the concrete type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
zDump := c.ztunnelDump svcs := slices.Filter(zDump.Services, filter.Verify) slices.SortFunc(svcs, func(a, b *ZtunnelService) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } if r := cmp.Compare(a.Name, b.Name); r != 0 { return r } return cmp.Compare(a.Hostname, b.Hostname) }) fmt.Fprintln(w, "NAMESPACE\tSERVICE NAME\tSERVICE VIP\tWAYPOINT") for _, svc := range svcs { var ip string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Comparators.java
* @param b second value to compare. * @throws ClassCastException if the parameters are not <i>mutually comparable</i> using the given * comparator. * @since 30.0 */ @ParametricNullness public static <T extends @Nullable Object> T max( @ParametricNullness T a, @ParametricNullness T b, Comparator<? super T> comparator) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 10.1K bytes - Viewed (0) -
src/slices/example_test.go
} func ExampleCompare() { names := []string{"Alice", "Bob", "Vera"} fmt.Println("Equal:", slices.Compare(names, []string{"Alice", "Bob", "Vera"})) fmt.Println("V < X:", slices.Compare(names, []string{"Alice", "Bob", "Xena"})) fmt.Println("V > C:", slices.Compare(names, []string{"Alice", "Bob", "Cat"})) fmt.Println("3 > 2:", slices.Compare(names, []string{"Alice", "Bob"})) // Output: // Equal: 0 // V < X: -1 // V > C: 1 // 3 > 2: 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
w := c.tabwriter() zDump := c.ztunnelDump pols := slices.Filter(zDump.Policies, filter.Verify) slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } return cmp.Compare(a.Name, b.Name) }) fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE") for _, pol := range pols { fmt.Fprintf(w, "%v\t%v\t%v\t%v\n",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo.mlir
reducer(%arg1: tensor<i1>, %arg3: tensor<i1>) (%arg2: tensor<i32>, %arg4: tensor<i32>) { %4 = mhlo.compare GT, %arg1, %arg3 : (tensor<i1>, tensor<i1>) -> tensor<i1> %5 = mhlo.select %4, %arg1, %arg3 : tensor<i1>, tensor<i1> %6 = mhlo.compare EQ, %arg1, %arg3 : (tensor<i1>, tensor<i1>) -> tensor<i1> %7 = mhlo.compare LT, %arg2, %arg4 : (tensor<i32>, tensor<i32>) -> tensor<i1> %8 = mhlo.and %6, %7 : tensor<i1>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 40.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Ordering.java
* instead (but note that it does not guarantee which tied minimum element is returned). * * @param a value to compare, returned if less than or equal to the rest. * @param b value to compare * @param c value to compare * @param rest values to compare * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this * ordering. */ @ParametricNullness
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 39.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedBytes.java
* * @param a the first {@code byte} to compare * @param b the second {@code byte} to compare * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is * greater than {@code b}; or zero if they are equal */ public static int compare(byte a, byte b) { return toInt(a) - toInt(b); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 18.3K bytes - Viewed (0) -
src/cmp/cmp.go
// // Note that floating-point types may contain NaN ("not-a-number") values. // An operator such as == or < will always report false when // comparing a NaN value with any other value, NaN or not. // See the [Compare] function for a consistent way to compare NaN values. type Ordered interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 16:31:02 UTC 2024 - 2K bytes - Viewed (0)