{ "name": "loop_126", "op_type": "loop_126", "description": "Conditionally update array elements where a per-element predicate holds", "tags": [ "simd-loop" ], "axes": { "N": { "type": "var", "description": "Array length" } }, "inputs": { "a": { "shape": [ "N" ], "dtype": "int32" }, "b": { "shape": [ "N" ], "dtype": "int32" } }, "outputs": { "res": { "shape": null, "dtype": "uint32", "description": "Scalar result" } }, "reference": "import numpy as np\n\ndef run(a, b):\n res = np.uint32(0)\n for i in range(len(a)):\n res = np.uint32(int(res) + int(a[i]) * int(b[i]))\n if res % 2:\n res = np.uint32(int(res) + 1)\n return res\n", "simd_loop_meta": { "output_inplace": false, "array_pad": 0, "scratch": [] } }