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 — __mul__ — Python array API standard DRAFT documentation

__mul__¶

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

Calculates the product for each element of an array instance with the respective element of the array other.

Note

Floating-point multiplication is not always associative due to finite precision.

Parameters:
  • self (array) – array instance. Should have a numeric data type.

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

Returns:

out (array) – an array containing the element-wise products. The returned array must have a data type determined by Type Promotion Rules.

Notes

  • Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function multiply().

Changed in version 2022.12: Added complex data type 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.