* garrow_boolean_array_xor: * @left: A left hand side #GArrowBooleanArray. * @right: A right hand side #GArrowBooleanArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): The element-wise XOR operated boolean array. * * It should be freed with g_object_unref() when no longer needed. * * Since: 0.13.0 */
| 5160 | * Since: 0.13.0 |
| 5161 | */ |
| 5162 | GArrowBooleanArray * |
| 5163 | garrow_boolean_array_xor(GArrowBooleanArray *left, |
| 5164 | GArrowBooleanArray *right, |
| 5165 | GError **error) |
| 5166 | { |
| 5167 | auto arrow_left = garrow_array_get_raw(GARROW_ARRAY(left)); |
| 5168 | auto arrow_right = garrow_array_get_raw(GARROW_ARRAY(right)); |
| 5169 | auto arrow_operated_datum = arrow::compute::Xor(arrow_left, arrow_right); |
| 5170 | if (garrow::check(error, arrow_operated_datum, "[boolean-array][xor]")) { |
| 5171 | auto arrow_operated_array = (*arrow_operated_datum).make_array(); |
| 5172 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_operated_array)); |
| 5173 | } else { |
| 5174 | return NULL; |
| 5175 | } |
| 5176 | } |
| 5177 | |
| 5178 | /** |
| 5179 | * garrow_numeric_array_mean: |
nothing calls this directly
no test coverage detected