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

This view

  • Original page
  • New address

GeezerVison is showing data-apis.org — Data Type Functions — Python array API standard DRAFT documentation

Data Type Functions¶

Array API specification for data type functions.

A conforming implementation of the array API standard must provide and support the following data type functions.

Objects in API¶

astype(x, dtype, /, *, copy=True, device=None)

Copies an array to a specified data type irrespective of Type Promotion Rules rules.

can_cast(from_, to, /)

Determines if one data type can be cast to another data type according to type promotion rules (see Type Promotion Rules).

finfo(type, /)

Machine limits for floating-point data types.

iinfo(type, /)

Machine limits for integer data types.

isdtype(dtype, kind)

Returns a boolean indicating whether a provided dtype is of a specified data type "kind".

result_type(*arrays_and_dtypes)

Returns the dtype that results from applying type promotion rules (see Type Promotion Rules) to the arguments.

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.