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
  • Manipulation 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 — broadcast_to — Python array API standard DRAFT documentation

broadcast_to¶

broadcast_to(x: array, /, shape: Tuple[int, ...]) → array¶

Broadcasts an array to a specified shape.

Parameters:
  • x (array) – array to broadcast. Must be capable of being broadcast to the specified shape (see Broadcasting). If the array is incompatible with the specified shape, the function must raise an exception.

  • shape (Tuple[int, ...]) – array shape.

Returns:
  • out (array) – an array having the specified shape. Must have the same data type as x.

  • .. versionchanged:: 2024.12 – Clarified broadcast behavior.

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.