{"id":"compute.parity--CompareFloatListsWithTolerance","name":"CompareFloatListsWithTolerance","owner":"yeho","package":"compute.parity","kind":"function","signature":"external CompareFloatListsWithTolerance(text label, text cpuPath, text optimizedPath, list of float expected, list of float actual, float tolerance) returns floatParitySummary","description":"Compare float lists with tolerance.","context":"Compare numerical results with explicit tolerances and CPU-reference evidence.","parameters":[{"name":"label","type":"text","description":"Supply label as text."},{"name":"cpuPath","type":"text","description":"Supply cpu path as text."},{"name":"optimizedPath","type":"text","description":"Supply optimized path as text."},{"name":"expected","type":"list of float","description":"Supply expected as list of float."},{"name":"actual","type":"list of float","description":"Supply actual as list of float."},{"name":"tolerance","type":"float","description":"Supply tolerance as float."}],"returns":"floatParitySummary","members":[],"tags":["compute","compute.parity","cpu","function","parity","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/parity/float_parity.yh","line":136,"sha256":"c88037645d306c3be187ab59e56237c9baa08c135a189746ed542c61ef3c46b8"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CompareFloatListsWithTolerance","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.parity\n\n// Compare numerical results with explicit tolerances and CPU-reference evidence.\ntext label = \"Player health\"\ntext cpuPath = \"cpu Path\"\ntext optimizedPath = \"optimized Path\"\nlist of float expected = []\nlist of float actual = []\nfloat tolerance = 1.0\nfloatParitySummary result = CompareFloatListsWithTolerance(label, cpuPath, optimizedPath, expected, actual, tolerance)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_parity__comparefloatlistswithtolerance\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.parity\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/parity\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.simd\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/simd\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"7aa5db8ae14a282ae427a429549739f4582e8150f7ec173baf31f148fc515bd8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.parity--CompareFloatListsWithTolerance","json":"https://demonhunterlabs.com/reference/items/compute.parity--CompareFloatListsWithTolerance.json","markdown":"https://demonhunterlabs.com/reference/text/compute.parity--CompareFloatListsWithTolerance.md"}
