compute.parity · thing ·

floatParityWorkflow

A float parity workflow record carrying label, cpuPath, optimizedPath, summary, report, and related state.

computecompute.paritycpumethodparitysource-examplethingyeho

Compare numerical results with explicit tolerances and CPU-reference evidence.

external thing floatParityWorkflow

Status: source-declared

Fields and methods (12)
text label
Stores label as text.
text cpuPath
Stores cpu path as text.
text optimizedPath
Stores optimized path as text.
floatParitySummary summary
Stores summary as floatParitySummary.
profileReport report
Stores report as profileReport.
list of parityMismatch mismatches
Stores mismatches as list of parityMismatch.
text note
Stores note as text.
floatParityWorkflow(text label, text cpuPath, text optimizedPath, floatParitySummary summary, profileReport report, text note)
Float parity workflow.
AddMismatch(parityMismatch mismatch)
Add mismatch. Complete example
MismatchCount() returns int
Mismatch count. Complete example
HasMismatches() returns bool
Has mismatches. Complete example
Describe() returns text
Describe. Complete example

Use floatParityWorkflow

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.parity

// Compare numerical results with explicit tolerances and CPU-reference evidence.
floatParityWorkflow sample = floatParityWorkflow("Player health", "cpu Path", "optimized Path", floatParitySummary(), profileReport("Player health", "note"), "note")
Console.Log(Text.From(sample.label))
project.mech
manifestVersion = "2"
package = "api.example.compute_parity__floatparityworkflow"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

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

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

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

[[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"

floatParityWorkflow.AddMismatch

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using compute.parity

// Add mismatch.
floatParityWorkflow instance = floatParityWorkflow("Player health", "cpu Path", "optimized Path", floatParitySummary(), profileReport("Player health", "note"), "note")
parityMismatch argument_mismatch = parityMismatch()
instance.AddMismatch(argument_mismatch)
Console.Log("AddMismatch completed")
project.mech
manifestVersion = "2"
package = "api.example.compute_parity__floatparityworkflow"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

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

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

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

[[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"

floatParityWorkflow.MismatchCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using compute.parity

// Mismatch count.
floatParityWorkflow instance = floatParityWorkflow("Player health", "cpu Path", "optimized Path", floatParitySummary(), profileReport("Player health", "note"), "note")
int result = instance.MismatchCount()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.compute_parity__floatparityworkflow"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

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

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

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

[[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"

floatParityWorkflow.HasMismatches

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using compute.parity

// Has mismatches.
floatParityWorkflow instance = floatParityWorkflow("Player health", "cpu Path", "optimized Path", floatParitySummary(), profileReport("Player health", "note"), "note")
bool result = instance.HasMismatches()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.compute_parity__floatparityworkflow"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

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

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

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

[[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"

floatParityWorkflow.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using compute.parity

// Describe.
floatParityWorkflow instance = floatParityWorkflow("Player health", "cpu Path", "optimized Path", floatParitySummary(), profileReport("Player health", "note"), "note")
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.compute_parity__floatparityworkflow"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

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

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

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

[[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/parity/workflows.yh:115