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
  • Array object
  • Purpose and scope
  • Terms and Definitions
  • Use cases
  • Assumptions
  • Design topics & constraints
  • Future API standard evolution
  • Broadcasting
  • Constants
  • Creation Functions
  • Data Type Functions

This view

  • Original page
  • New address

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

__lt__¶

array.__lt__(other: int | float | array, /) → array¶

Computes the truth value of self_i < other_i for each element of an array instance with the respective element of the array other.

Parameters:
  • self (array) – array instance. Should have a real-valued data type.

  • other (Union[int, float, array]) – other array. Must be compatible with self (see Broadcasting). Should have a real-valued data type.

Returns:

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

Notes

  • Element-wise results must equal the results returned by the equivalent element-wise function less().

  • Comparison of arrays without a corresponding promotable data type (see Type Promotion Rules) is undefined and thus implementation-dependent.

  • For backward compatibility, conforming implementations may support complex numbers; however, inequality comparison of complex numbers is unspecified and thus implementation-dependent (see Complex Number Ordering).

Changed in version 2024.12: Cross-kind comparisons are explicitly left unspecified.

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.