GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 
  • Consortium for Python Data API Standards
  • API specification
  • Element-wise Functions
  • Purpose and scope
  • Terms and Definitions
  • Use cases
  • Assumptions
  • Design topics & constraints
  • Future API standard evolution
  • Array object
  • Broadcasting
  • Constants
  • Creation Functions

This view

  • Original page
  • New address

GeezerVison is showing data-apis.org — logical_xor — Python array API standard DRAFT documentation

logical_xor¶

logical_xor(x1: array | bool, x2: array | bool, /) → array¶

Computes the logical XOR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2.

Note

While this specification recommends that this function only accept input arrays having a boolean data type, specification-compliant array libraries may choose to accept input arrays having real-valued data types. If non-boolean data types are supported, zeros must be considered the equivalent of False, while non-zeros must be considered the equivalent of True.

Parameters:
  • x1 (Union[array, bool]) – first input array. Should have a boolean data type.

  • x2 (Union[array, bool]) – second input array. Must be compatible with x1 (see Broadcasting). Should have a boolean data type.

Returns:

out (array) – an array containing the element-wise results. The returned array must have a data type of bool.

Notes

  • At least one of x1 or x2 must be an array.

Changed in version 2024.12: Added scalar argument support.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.