scispace - formally typeset
Open AccessJournal ArticleDOI

Array programming with NumPy

Reads0
Chats0
TLDR
In this paper, the authors review how a few fundamental array concepts lead to a simple and powerful programming paradigm for organizing, exploring and analysing scientific data, and their evolution into a flexible interoperability layer between increasingly specialized computational libraries is discussed.
Abstract
Array programming provides a powerful, compact and expressive syntax for accessing, manipulating and operating on data in vectors, matrices and higher-dimensional arrays. NumPy is the primary array programming library for the Python language. It has an essential role in research analysis pipelines in fields as diverse as physics, chemistry, astronomy, geoscience, biology, psychology, materials science, engineering, finance and economics. For example, in astronomy, NumPy was an important part of the software stack used in the discovery of gravitational waves1 and in the first imaging of a black hole2. Here we review how a few fundamental array concepts lead to a simple and powerful programming paradigm for organizing, exploring and analysing scientific data. NumPy is the foundation upon which the scientific Python ecosystem is constructed. It is so pervasive that several projects, targeting audiences with specialized needs, have developed their own NumPy-like interfaces and array objects. Owing to its central position in the ecosystem, NumPy increasingly acts as an interoperability layer between such array computation libraries and, together with its application programming interface (API), provides a flexible framework to support the next decade of scientific and industrial analysis. NumPy is the primary array programming library for Python; here its fundamental concepts are reviewed and its evolution into a flexible interoperability layer between increasingly specialized computational libraries is discussed.

read more

Content maybe subject to copyright    Report

Citations
More filters
Journal ArticleDOI

Annual Industrial and Commercial Heat Load Profiles: Modeling Based on k-Means Clustering and Regression Analysis

TL;DR: In this article, the authors present a method to predict annual heat load profiles with a daily resolution for industry and commerce, based on an analysis of 797 natural gas load profiles (≥1.5 GWh/a).
Journal ArticleDOI

Phase-resolved spectroscopy of a quasi-periodic oscillation in the black hole X-ray binary GRS 1915+105 with NICER and NuSTAR

TL;DR: In this article , a tomographic model was applied to constrain the phase-dependent illumination profile of the disc, which is consistent with the model of a truncated disc with an inner precessing hot flow.
Journal ArticleDOI

Protease-mediated processing of Argonaute proteins controls small RNA association

TL;DR: In this paper, the authors reveal a proteolytic mechanism that controls endogenous small interfering (22G) RNA activity in the Caenorhabditis elegans germline to protect genome integrity and maintain fertility.
Journal ArticleDOI

The dynamic magnetosphere of Swift J1818.0-1607

TL;DR: The magnetar Swift J1818 as mentioned in this paper exhibited significant temporal profile evolution over a period of 5 months, including the emergence of a new profile component with an inverted spectrum, two distinct types of radio emission mode switching, detected during two separate observations, and appearance and disappearance of multiple polarization modes.
Journal ArticleDOI

Statistical Emulation of Winter Ambient Fine Particulate Matter Concentrations From Emission Changes in China.

TL;DR: Li et al. as discussed by the authors developed novel emulators relating emission changes in five key anthropogenic sectors (residential, industry, land transport, agriculture, and power generation) to winter ambient fine particulate matter (PM2.5) concentrations across China.
References
More filters
Journal Article

Scikit-learn: Machine Learning in Python

TL;DR: Scikit-learn is a Python module integrating a wide range of state-of-the-art machine learning algorithms for medium-scale supervised and unsupervised problems, focusing on bringing machine learning to non-specialists using a general-purpose high-level language.
Journal ArticleDOI

Matplotlib: A 2D Graphics Environment

TL;DR: Matplotlib is a 2D graphics package used for Python for application development, interactive scripting, and publication-quality image generation across user interfaces and operating systems.
Journal ArticleDOI

SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python

TL;DR: SciPy as discussed by the authors is an open source scientific computing library for the Python programming language, which includes functionality spanning clustering, Fourier transforms, integration, interpolation, file I/O, linear algebra, image processing, orthogonal distance regression, minimization algorithms, signal processing, sparse matrix handling, computational geometry, and statistics.
Proceedings ArticleDOI

TensorFlow: a system for large-scale machine learning

TL;DR: TensorFlow as mentioned in this paper is a machine learning system that operates at large scale and in heterogeneous environments, using dataflow graphs to represent computation, shared state, and the operations that mutate that state.
Related Papers (5)