MCPcopy Create free account
hub / github.com/apache/arrow / garrow_boolean_array_xor

Function garrow_boolean_array_xor

c_glib/arrow-glib/compute.cpp:5117–5131  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

5115 * Since: 0.13.0
5116 */
5117GArrowBooleanArray *
5118garrow_boolean_array_xor(GArrowBooleanArray *left,
5119 GArrowBooleanArray *right,
5120 GError **error)
5121{
5122 auto arrow_left = garrow_array_get_raw(GARROW_ARRAY(left));
5123 auto arrow_right = garrow_array_get_raw(GARROW_ARRAY(right));
5124 auto arrow_operated_datum = arrow::compute::Xor(arrow_left, arrow_right);
5125 if (garrow::check(error, arrow_operated_datum, "[boolean-array][xor]")) {
5126 auto arrow_operated_array = (*arrow_operated_datum).make_array();
5127 return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_operated_array));
5128 } else {
5129 return NULL;
5130 }
5131}
5132
5133/**
5134 * garrow_numeric_array_mean:

Callers

nothing calls this directly

Calls 4

garrow_array_new_rawFunction · 0.85
make_arrayMethod · 0.80
garrow_array_get_rawFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected