function
Convert a contiguous Boolean mask to binary32 +0.0 or +1.0.
arm_cmsis_nn_status arm_nn_cast_bool_f32(const bool *input, float32_t *output, int32_t count)Convert a contiguous Boolean mask to binary32 +0.0 or +1.0.
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
input | const bool * | in | Contiguous valid C bool objects (one-byte 0/1 on Arm). |
output | float32_t * | out | Contiguous result with count elements, disjoint from the input. |
count | int32_t | in | Positive number of elements, at most INT32_MAX / 4. |
Returns
| Description |
|---|
| ARM_CMSIS_NN_SUCCESS or ARM_CMSIS_NN_ARG_ERROR for null pointers or invalid count. |