compute.kernels · function ·

BroadcastBinaryInts

Broadcast binary ints.

computecompute.kernelscpufunctionkernelssource-exampleyeho

Describe reusable compute kernels and their workload contracts.

external BroadcastBinaryInts(text operationKind, list of int leftValues, list of int leftDimensions, list of int rightValues, list of int rightDimensions) returns list of int

Status: source-declared

Parameters

text operationKind
Supply operation kind as text.
list of int leftValues
Supply left values as list of int.
list of int leftDimensions
Supply left dimensions as list of int.
list of int rightValues
Supply right values as list of int.
list of int rightDimensions
Supply right dimensions as list of int.

Use BroadcastBinaryInts

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using compute.kernels

// Describe reusable compute kernels and their workload contracts.
text operationKind = "operation Kind"
list of int leftValues = []
list of int leftDimensions = []
list of int rightValues = []
list of int rightDimensions = []
list of int result = BroadcastBinaryInts(operationKind, leftValues, leftDimensions, rightValues, rightDimensions)
Console.Log(Text.From(result.count))
project.mech
manifestVersion = "2"
package = "api.example.compute_kernels__broadcastbinaryints"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/compute/kernels/kernels.yh:707