Broadcasting — NumPy v2.6.dev0 Manual

numpy.org

Learn | NEPs | Installation | User Guide | API reference | Building from source | Development | Release notes | What is NumPy? | NumPy quickstart | NumPy: the absolute basics for beginners | NumPy fundamentals | Array creation | Indexing on ndarrays | I/O with NumPy | Data types | Copies and views | Working with Arrays of Strings And Bytes | Structured arrays | Universal functions (ufunc) basics | NumPy how-tos | Using NumPy C-API | F2PY user guide and reference manual | Glossary | NumPy 2.0 migration guide | NumPy license | Under-the-hood documentation for developers | NumPy for MATLAB users

Tin mới

NumPy v2.6.dev0 Manual - Home

NumPy v2.6.dev0 Manual - Home

Building from source

NumPy: the absolute basics for beginners

NumPy fundamentals

Indexing on ndarrays

Working with Arrays of Strings And Bytes

Universal functions (ufunc) basics

NumPy for MATLAB users

F2PY user guide and reference manual

Under-the-hood documentation for developers

Interoperability with NumPy

Writing Performant NumPy Code with Multi-Core CPUs

NumPy 2.0 migration guide

General broadcasting rules#

General broadcasting rules#

NumPy operations are usually done on pairs of arrays on an element-by-element basis. In the simplest case, the two arrays must have exactly the same shape, as in the following example:

previous Data types

next Copies and views

‹ 1 1 ›

Tin khác

⌂num
1/1