Search is not available for this dataset
repo_id stringlengths 12 110 | file_path stringlengths 24 164 | content stringlengths 3 89.3M | __index_level_0__ int64 0 0 |
|---|---|---|---|
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.23.2-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.23.2 Release Notes
==========================
NumPy 1.23.2 is a maintenance release that fixes bugs discovered after the
1.23.1 release. Notable features are:
- Typing changes needed for Python 3.11
- Wheels for Python 3.11.0rc1
The Python versions support... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.16.2-notes.rst | ==========================
NumPy 1.16.2 Release Notes
==========================
NumPy 1.16.2 is a quick release fixing several problems encountered on Windows.
The Python versions supported are 2.7 and 3.5-3.7. The Windows problems
addressed are:
- DLL load problems for NumPy wheels on Windows,
- distutils command l... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.25.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.25.1 Release Notes
==========================
NumPy 1.25.1 is a maintenance release that fixes bugs and regressions discovered after the
1.25.0 release. The Python versions supported by this release are 3.9-3.11.
Contributors
============
A total of 10 peop... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.18.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.18.1 Release Notes
==========================
This release contains fixes for bugs reported against NumPy 1.18.0. Two bugs
in particular that caused widespread problems downstream were:
- The cython random extension test was not using a temporary directory... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.26.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.26.1 Release Notes
==========================
NumPy 1.26.1 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.0 release. In addition, it adds new functionality for
detecting BLAS and LAPACK when building from source. Highlight... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.9.2-notes.rst | =========================
NumPy 1.9.2 Release Notes
=========================
This is a bugfix only release in the 1.9.x series.
Issues fixed
============
* `#5316 <https://github.com/numpy/numpy/issues/5316>`__: fix too large dtype alignment of strings and complex types
* `#5424 <https://github.com/numpy/numpy/issu... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.19.5-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.19.5 Release Notes
==========================
NumPy 1.19.5 is a short bugfix release. Apart from fixing several bugs, the
main improvement is the update to OpenBLAS 0.3.13 that works around the windows
2004 bug while not breaking execution on other platforms... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.13.1-notes.rst | ==========================
NumPy 1.13.1 Release Notes
==========================
This is a bugfix release for problems found in 1.13.0. The major changes are
fixes for the new memory overlap detection and temporary elision as well as
reversion of the removal of the boolean binary ``-`` operator. Users of 1.13.0
should... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.17.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.17.1 Release Notes
==========================
This release contains a number of fixes for bugs reported against NumPy 1.17.0
along with a few documentation and build improvements. The Python versions
supported are 3.5-3.7, note that Python 2.7 has been drop... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.4.0-notes.rst | =========================
NumPy 1.4.0 Release Notes
=========================
This minor includes numerous bug fixes, as well as a few new features. It
is backward compatible with 1.3.0 release.
Highlights
==========
* New datetime dtype support to deal with dates in arrays
* Faster import time
* Extended array wr... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.16.6-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.16.6 Release Notes
==========================
The NumPy 1.16.6 release fixes bugs reported against the 1.16.5 release, and
also backports several enhancements from master that seem appropriate for a
release series that is the last to support Python 2.7. The ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.10.3-notes.rst | ==========================
NumPy 1.10.3 Release Notes
==========================
N/A this release did not happen due to various screwups involving PyPI.
| 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.24.3-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.24.3 Release Notes
==========================
NumPy 1.24.3 is a maintenance release that fixes bugs and regressions discovered after the
1.24.2 release. The Python versions supported by this release are 3.8-3.11.
Contributors
============
A total of 12 peop... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.24.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.24.1 Release Notes
==========================
NumPy 1.24.1 is a maintenance release that fixes bugs and regressions discovered after the
1.24.0 release. The Python versions supported by this release are 3.8-3.11.
Contributors
============
A total of 12 peop... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.14.1-notes.rst | ==========================
NumPy 1.14.1 Release Notes
==========================
This is a bugfix release for some problems reported following the 1.14.0 release. The major
problems fixed are the following.
* Problems with the new array printing, particularly the printing of complex
values, Please report any additi... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.3.0-notes.rst | =========================
NumPy 1.3.0 Release Notes
=========================
This minor includes numerous bug fixes, official python 2.6 support, and
several new features such as generalized ufuncs.
Highlights
==========
Python 2.6 support
------------------
Python 2.6 is now supported on all previously supported ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.18.3-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.18.3 Release Notes
==========================
This release contains various bug/regression fixes.
The Python versions supported in this release are 3.5-3.8. Downstream
developers should use Cython >= 0.29.15 for Python 3.8 support and OpenBLAS >=
3.7 to avo... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.7.0-notes.rst | =========================
NumPy 1.7.0 Release Notes
=========================
This release includes several new features as well as numerous bug fixes and
refactorings. It supports Python 2.4 - 2.7 and 3.1 - 3.3 and is the last
release that supports Python 2.4 - 2.5.
Highlights
==========
* ``where=`` parameter to u... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.21.5-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.21.5 Release Notes
==========================
NumPy 1.21.5 is a maintenance release that fixes a few bugs discovered after
the 1.21.4 release and does some maintenance to extend the 1.21.x lifetime.
The Python versions supported in this release are 3.7-3.10.... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.23.1-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.23.1 Release Notes
==========================
NumPy 1.23.1 is a maintenance release that fixes bugs discovered after the
1.23.0 release. Notable fixes are:
- Fix searchsorted for float16 NaNs
- Fix compilation on Apple M1
- Fix KeyError in crackfortran oper... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.21.6-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.21.6 Release Notes
==========================
NumPy 1.21.6 is a very small release that achieves two things:
- Backs out the mistaken backport of C++ code into 1.21.5.
- Provides a 32 bit Windows wheel for Python 3.10.
The provision of the 32 bit wheel is ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.8.1-notes.rst | =========================
NumPy 1.8.1 Release Notes
=========================
This is a bugfix only release in the 1.8.x series.
Issues fixed
============
* gh-4276: Fix mean, var, std methods for object arrays
* gh-4262: remove insecure mktemp usage
* gh-2385: absolute(complex(inf)) raises invalid warning in pytho... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/release/1.18.5-notes.rst | .. currentmodule:: numpy
==========================
NumPy 1.18.5 Release Notes
==========================
This is a short release to allow pickle ``protocol=5`` to be used in
Python3.5. It is motivated by the recent backport of pickle5 to Python3.5.
The Python versions supported in this release are 3.5-3.8. Downstre... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/absolute_beginners.rst |
****************************************
NumPy: the absolute basics for beginners
****************************************
.. currentmodule:: numpy
Welcome to the absolute beginner's guide to NumPy!
NumPy (**Num**\ erical **Py**\ thon) is an open source Python library that's
widely used in science and engineering. ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.indexing.rst | .. for doctest:
>>> import numpy as np
.. _basics.indexing:
****************************************
Indexing on :class:`ndarrays <.ndarray>`
****************************************
.. seealso::
:ref:`Indexing routines <routines.indexing>`
.. sectionauthor:: adapted from "Guide to NumPy" by Travis E. Oli... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.subclassing.rst | .. _basics.subclassing:
*******************
Subclassing ndarray
*******************
Introduction
============
Subclassing ndarray is relatively simple, but it has some complications
compared to other Python objects. On this page we explain the machinery
that allows you to subclass ndarray, and the implications for
... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/howtos_index.rst | .. _howtos:
################
NumPy how-tos
################
These documents are intended as recipes to common tasks using NumPy. For
detailed reference documentation of the functions and classes contained in
the package, see the :ref:`API reference <reference>`.
.. toctree::
:maxdepth: 1
how-to-how-to
how-... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.types.rst | .. _basics.types:
**********
Data types
**********
.. seealso:: :ref:`Data type objects <arrays.dtypes>`
Array types and conversions between types
=========================================
NumPy supports a much greater variety of numerical types than Python does.
This section shows which are available, and how to m... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.interoperability.rst |
.. _basics.interoperability:
***************************
Interoperability with NumPy
***************************
NumPy's ndarray objects provide both a high-level API for operations on
array-structured data and a concrete implementation of the API based on
:ref:`strided in-RAM storage <arrays>`. While this API is po... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/quickstart.rst | ===================
NumPy quickstart
===================
.. currentmodule:: numpy
.. testsetup::
>>> import numpy as np
>>> import sys
Prerequisites
=============
You'll need to know a bit of Python. For a refresher, see the `Python
tutorial <https://docs.python.org/tutorial/>`__.
To work the examples, you'... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/how-to-how-to.rst | .. _how-to-how-to:
##############################################################################
How to write a NumPy how-to
##############################################################################
How-tos get straight to the point -- they
- answer a focused question, or
- narrow a broad question into focused... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.dispatch.rst | .. _basics.dispatch:
*******************************
Writing custom array containers
*******************************
Numpy's dispatch mechanism, introduced in numpy version v1.16 is the
recommended approach for writing custom N-dimensional array containers that are
compatible with the numpy API and provide custom imp... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/how-to-verify-bug.rst | .. _how-to-verify-bug:
#####################################
Verifying bugs and bug fixes in NumPy
#####################################
In this how-to you will learn how to:
- Verify the existence of a bug in NumPy
- Verify the fix, if any, made for the bug
While you walk through the verification process, you will... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.broadcasting.rst | .. _basics.broadcasting:
.. _array-broadcasting-in-numpy:
************
Broadcasting
************
.. seealso::
:class:`numpy.broadcast`
The term broadcasting describes how NumPy treats arrays with different
shapes during arithmetic operations. Subject to certain constraints,
the smaller array is "broadcast" acro... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.copies.rst | .. _basics.copies-and-views:
****************
Copies and views
****************
When operating on NumPy arrays, it is possible to access the internal data
buffer directly using a :ref:`view <view>` without copying data around. This
ensures good performance but can also cause unwanted problems if the user is
not aware... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/c-info.python-as-glue.rst | ====================
Using Python as glue
====================
.. warning::
This was written in 2008 as part of the original
`Guide to NumPy <https://archive.org/details/NumPyBook>`_ book
by Travis E. Oliphant and is out of date.
| There is no conversation more boring than the one where everybody
| agr... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/c-info.rst | #################
Using NumPy C-API
#################
.. toctree::
c-info.how-to-extend
c-info.python-as-glue
c-info.ufunc-tutorial
c-info.beyond-basics
| 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/how-to-index.rst | .. currentmodule:: numpy
.. _how-to-index:
*****************************************
How to index :class:`ndarrays <.ndarray>`
*****************************************
.. seealso:: :ref:`basics.indexing`
This page tackles common examples. For an in-depth look into indexing, refer
to :ref:`basics.indexing`.
Access... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/theory.broadcasting.rst | :orphan:
===========================
Array broadcasting in Numpy
===========================
..
Originally part of the scipy.org wiki, available `here
<https://scipy.github.io/old-wiki/pages/EricsBroadcastingDoc>`_ or from the
`github repo
<https://github.com/scipy/old-wiki/blob/gh-pages/pages/EricsBroad... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.ufuncs.rst | .. sectionauthor:: adapted from "Guide to NumPy" by Travis E. Oliphant
.. _ufuncs-basics:
********************************************
Universal functions (:class:`.ufunc`) basics
********************************************
.. seealso:: :ref:`ufuncs`
.. index: ufunc, universal function, arithmetic, operation
A un... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/how-to-partition.rst | .. _how-to-partition:
=================================================
How to create arrays with regularly-spaced values
=================================================
There are a few NumPy functions that are similar in application, but which
provide slightly different results, which may cause confusion if one is... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.rst | ******************
NumPy fundamentals
******************
These documents clarify concepts, design decisions, and technical
constraints in NumPy. This is a great place to understand the
fundamental NumPy ideas and philosophy.
.. toctree::
:maxdepth: 1
basics.creation
basics.indexing
basics.io
basics.t... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/broadcasting_3.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="124.43386mm"
height="91.324844mm"
viewBox="0 0 124.43386 91.324844"
version="1.1"
id="svg60162"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
sodipodi:docname="theory.broa... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/install.rst | :orphan:
****************
Installing NumPy
****************
See `Installing NumPy <https://numpy.org/install/>`_. | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/broadcasting_5.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="215.56395mm"
height="140.59219mm"
viewBox="0 0 215.56395 140.59219"
version="1.1"
id="svg92220"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
sodipodi:docname="broadcastin... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/index.rst | .. _user:
################
NumPy user guide
################
This guide is an overview and explains the important features;
details are found in :ref:`reference`.
.. toctree::
:caption: Getting started
:maxdepth: 1
whatisnumpy
Installation <https://numpy.org/install/>
quickstart
absolute_beginners... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.io.genfromtxt.rst | .. sectionauthor:: Pierre Gerard-Marchant <pierregmcode@gmail.com>
*********************************************
Importing data with :func:`~numpy.genfromtxt`
*********************************************
NumPy provides several functions to create arrays from tabular data.
We focus here on the :func:`~numpy.genfromtx... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/troubleshooting-importerror.rst | :orphan:
.. Reason for orphan: This page is referenced by the installation
instructions, which have moved from Sphinx to https://numpy.org/install.
All install links in Sphinx now point there, leaving no Sphinx references
to this page.
***************
Troubleshooting
***************
.. note::
Since th... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/how-to-io.rst | .. _how-to-io:
.. Setting up files temporarily to be used in the examples below. Clear-up
has to be done at the end of the document.
.. testsetup::
>>> from numpy.testing import temppath
>>> with open("csv.txt", "wt") as f:
... _ = f.write("1, 2, 3\n4,, 6\n7, 8, 9")
>>> with open("fixedwidth.txt", ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/misc.rst | :orphan:
*************
Miscellaneous
*************
IEEE 754 floating point special values
--------------------------------------
Special values defined in numpy: nan, inf,
NaNs can be used as a poor-man's mask (if you don't care what the
original value was)
Note: cannot use equality to test NaNs. E.g.: ::
>>> my... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/c-info.how-to-extend.rst | *******************
How to extend NumPy
*******************
| That which is static and repetitive is boring. That which is dynamic
| and random is confusing. In between lies art.
| --- *John A. Locke*
| Science is a differential equation. Religion is a boundary condition.
| --- *Alan Turing*
.. _writ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/numpy-for-matlab-users.rst | .. _numpy-for-matlab-users:
======================
NumPy for MATLAB users
======================
Introduction
============
MATLAB® and NumPy have a lot in common, but NumPy was created to work with
Python, not to be a MATLAB clone. This guide will help MATLAB users get started
with NumPy.
.. raw:: html
<style>... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/whatisnumpy.rst | .. _whatisnumpy:
**************
What is NumPy?
**************
NumPy is the fundamental package for scientific computing in Python.
It is a Python library that provides a multidimensional array object,
various derived objects (such as masked arrays and matrices), and an
assortment of routines for fast operations on ar... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.rec.rst | .. _structured_arrays:
*****************
Structured arrays
*****************
Introduction
============
Structured arrays are ndarrays whose datatype is a composition of simpler
datatypes organized as a sequence of named :term:`fields <field>`. For example,
::
>>> x = np.array([('Rex', 9, 81.0), ('Fido', 3, 27.0)],... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/broadcasting_4.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="150.64636mm"
height="69.054741mm"
viewBox="0 0 150.64636 69.054741"
version="1.1"
id="svg83310"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
sodipodi:docname="theory.broa... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/c-info.ufunc-tutorial.rst | **********************
Writing your own ufunc
**********************
| I have the Power!
| --- *He-Man*
.. _`sec:Creating-a-new`:
Creating a new universal function
=================================
.. index::
pair: ufunc; adding new
Before reading this, it may help to familiarize yourself with the basics
of C ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/byteswapping.rst | *************
Byte-swapping
*************
Introduction to byte ordering and ndarrays
==========================================
The ``ndarray`` is an object that provides a python array interface to data
in memory.
It often happens that the memory that you want to view with an array is
not of the same byte ordering ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/broadcasting_2.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="136.12085mm"
height="55.258423mm"
viewBox="0 0 136.12085 55.258424"
version="1.1"
id="svg2361"
inkscape:version="1.1 (c68e22c387, 2021-05-23)"
sodipodi:docname="theory.broad... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.creation.rst | .. _arrays.creation:
**************
Array creation
**************
.. seealso:: :ref:`Array creation routines <routines.array-creation>`
Introduction
============
There are 6 general mechanisms for creating arrays:
1) Conversion from other Python structures (i.e. lists and tuples)
2) Intrinsic NumPy array creation ... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/building.rst | .. _building-from-source:
Building from source
====================
Building locally on your machine gives you complete control over build options.
If you are a MacOS or Linux user familiar with using the
command line, you can continue with building NumPy locally by following the
instructions below.
.. note:: If you... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/c-info.beyond-basics.rst | *****************
Beyond the basics
*****************
| The voyage of discovery is not in seeking new landscapes but in having
| new eyes.
| --- *Marcel Proust*
| Discovery is seeing what everyone else has seen and thinking what no
| one else has thought.
| --- *Albert Szent-Gyorgi*
Iterating over... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/basics.io.rst | **************
I/O with NumPy
**************
.. toctree::
:maxdepth: 2
basics.io.genfromtxt
| 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/user/broadcasting_1.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="137.50784mm"
height="50.70256mm"
viewBox="0 0 137.50784 50.70256"
version="1.1"
id="svg5"
sodipodi:docname="theory.broadcasting_1.svg"
inkscape:version="1.1 (c68e22c387, 202... | 0 |
public_repos/numpy/doc/source/user | public_repos/numpy/doc/source/user/plots/matplotlib2.py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 5, 20)
y = np.linspace(0, 10, 20)
plt.plot(x, y, 'purple') # line
plt.plot(x, y, 'o') # dots
plt.show() | 0 |
public_repos/numpy/doc/source/user | public_repos/numpy/doc/source/user/plots/meshgrid_plot.py | import numpy as np
import matplotlib.pyplot as plt
x = np.array([0, 1, 2, 3])
y = np.array([0, 1, 2, 3, 4, 5])
xx, yy = np.meshgrid(x, y)
plt.plot(xx, yy, marker='o', color='k', linestyle='none')
| 0 |
public_repos/numpy/doc/source/user | public_repos/numpy/doc/source/user/plots/matplotlib1.py | import matplotlib.pyplot as plt
import numpy as np
a = np.array([2, 1, 5, 7, 4, 6, 8, 14, 10, 9, 18, 20, 22])
plt.plot(a)
plt.show() | 0 |
public_repos/numpy/doc/source/user | public_repos/numpy/doc/source/user/plots/matplotlib3.py | import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(projection='3d')
X = np.arange(-5, 5, 0.15)
Y = np.arange(-5, 5, 0.15)
X, Y = np.meshgrid(X, Y)
R = np.sqrt(X**2 + Y**2)
Z = np.sin(R)
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap='viridis')
plt.show() | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/_templates/searchbox.html | {#
basic/searchbox.html
~~~~~~~~~~~~~~~~~~~~
Sphinx sidebar template: quick search box.
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- if pagename != "search" and builder != "singlehtml" %}
<div id="searchbox" style="display: none" r... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/method.rst | :orphan:
{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
method
.. auto{{ objtype }}:: {{ fullname | replace("numpy.", "numpy::") }}
{# In the fullname (e.g. `numpy.ma.MaskedArray.methodname`), the module name
is ambiguous. Using a `::` separator (e.g. `numpy::ma.MaskedArray.methodname`)
specifi... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/minimal_module.rst | {{ fullname | escape | underline}}
.. automodule:: {{ fullname }}
{% block docstring %}
{% endblock %}
| 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/class.rst | {% extends "!autosummary/class.rst" %}
{% block methods %}
{% if methods %}
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages.
.. autosummary::
:toctree:
{% for item in all_methods %}
{%- if not item.starts... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/module.rst | {% extends "!autosummary/module.rst" %}
{# This file is almost the same as the default, but adds :toctree: to the autosummary directives.
The original can be found at `sphinx/ext/autosummary/templates/autosummary/module.rst`. #}
{% block attributes %}
{% if attributes %}
.. rubric:: Module Attributes
.. aut... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/member.rst | :orphan:
{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
member
.. auto{{ objtype }}:: {{ fullname | replace("numpy.", "numpy::") }}
{# In the fullname (e.g. `numpy.ma.MaskedArray.methodname`), the module name
is ambiguous. Using a `::` separator (e.g. `numpy::ma.MaskedArray.methodname`)
specifi... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/attribute.rst | :orphan:
{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
attribute
.. auto{{ objtype }}:: {{ fullname | replace("numpy.", "numpy::") }}
{# In the fullname (e.g. `numpy.ma.MaskedArray.methodname`), the module name
is ambiguous. Using a `::` separator (e.g. `numpy::ma.MaskedArray.methodname`)
spec... | 0 |
public_repos/numpy/doc/source/_templates | public_repos/numpy/doc/source/_templates/autosummary/base.rst | {% if objtype == 'property' %}
:orphan:
{% endif %}
{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
{% if objtype == 'property' %}
property
{% endif %}
.. auto{{ objtype }}:: {{ fullname | replace("numpy.", "numpy::") }}
{# In the fullname (e.g. `numpy.ma.MaskedArray.methodname`), the module nam... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/_static/numpy.css | @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
.navbar-brand img {
height: 75px;
}
.navbar-brand {
height: 75px;
}
body {
font-family: 'Open Sans', sans-serif;
}
pre, code {
font-siz... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/_static/numpylogo_dark.svg | <?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!--Generator: Xara Designer (www.xara.com), SVG filter version: 6.4.0.3-->
<svg fill="none" fill-rule="evenodd" stroke="black" stroke-width="0.501" stroke-linejoin="bevel" stroke-mit... | 0 |
public_repos/numpy/doc/source | public_repos/numpy/doc/source/_static/numpylogo.svg | <?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!--Generator: Xara Designer (www.xara.com), SVG filter version: 6.4.0.3-->
<svg fill="none" fill-rule="evenodd" stroke="black" stroke-width="0.501" stroke-linejoin="bevel" stroke-mit... | 0 |
public_repos/numpy/doc/source/_static | public_repos/numpy/doc/source/_static/index-images/api.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 1170 1063">
<metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 ">
<rdf:RDF x... | 0 |
public_repos/numpy/doc/source/_static | public_repos/numpy/doc/source/_static/index-images/user_guide.svg | <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#013243"><g><rect fill="none" height="24" width="24"/></g><g><g/><g><path d="M21,5c-1.11-0.35-2.33-0.5-3.5-0.5c-1.95,0-4.05,0.4-5.5,1.5c-1.45-1.1-3.55-1.5-5.5-1.5S2.45,4.9,1,6v14.65 c0,0.25,0.2... | 0 |
public_repos/numpy/doc/source/_static | public_repos/numpy/doc/source/_static/index-images/contributor.svg | <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#013243"><path d="M0 0h24v24H0z" fill="none"/><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg> | 0 |
public_repos/numpy/doc/source/_static | public_repos/numpy/doc/source/_static/index-images/getting_started.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" viewBox="0 0 1194 1063">
<metadata><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 ">
<rdf:RDF x... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0025-missing-data-3.rst | .. _NEP25:
======================================
NEP 25 — NA support via special dtypes
======================================
:Author: Nathaniel J. Smith <njs@pobox.com>
:Status: Deferred
:Type: Standards Track
:Created: 2011-07-08
Abstract
========
*Context: this NEP was written as an additional alternative to N... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/open.rst.tmpl | Open NEPs (under consideration)
-------------------------------
.. toctree::
:maxdepth: 1
{% for nep, tags in neps.items() if tags['Status'] == 'Draft' %}
{{ tags['Title'] }} <{{ tags['Filename'] }}>
{% endfor %}
| 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0041-improved-dtype-support.rst | .. _NEP41:
=================================================
NEP 41 — First step towards a new datatype system
=================================================
:title: First step towards a new Datatype System
:Author: Sebastian Berg
:Author: Stéfan van der Walt
:Author: Matti Picus
:Status: Accepted
:Type: Standard ... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0022-ndarray-duck-typing-overview.rst | .. _NEP22:
===========================================================
NEP 22 — Duck typing for NumPy arrays – high level overview
===========================================================
:Author: Stephan Hoyer <shoyer@google.com>, Nathaniel J. Smith <njs@pobox.com>
:Status: Final
:Type: Informational
:Created: 20... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0030-duck-array-protocol.rst | .. _NEP30:
======================================================
NEP 30 — Duck typing for NumPy arrays - implementation
======================================================
:Author: Peter Andreas Entschev <pentschev@nvidia.com>
:Author: Stephan Hoyer <shoyer@google.com>
:Status: Draft
:Type: Standards Track
:Creat... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0032-remove-financial-functions.rst | .. _NEP32:
==================================================
NEP 32 — Remove the financial functions from NumPy
==================================================
:Author: Warren Weckesser <warren.weckesser@gmail.com>
:Status: Final
:Type: Standards Track
:Created: 2019-08-30
:Resolution: https://mail.python.org/pip... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/deferred.rst.tmpl | Deferred and Superseded NEPs
----------------------------
.. toctree::
:maxdepth: 1
{% for nep, tags in neps.items() if tags['Status'] in ('Deferred', 'Superseded') %}
{{ tags['Title'] }} <{{ tags['Filename'] }}>
{% endfor %}
| 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0016-abstract-array.rst | .. _NEP16:
=============================================================
NEP 16 — An abstract base class for identifying "duck arrays"
=============================================================
:Author: Nathaniel J. Smith <njs@pobox.com>
:Status: Withdrawn
:Type: Standards Track
:Created: 2018-03-06
:Resolution: h... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0037-array-module.rst | .. _NEP37:
===================================================
NEP 37 — A dispatch protocol for NumPy-like modules
===================================================
:Author: Stephan Hoyer <shoyer@google.com>
:Author: Hameer Abbasi
:Author: Sebastian Berg
:Status: Draft
:Type: Standards Track
:Created: 2019-12-29
A... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0010-new-iterator-ufunc.rst | .. _NEP10:
==============================================
NEP 10 — Optimizing iterator/UFunc performance
==============================================
:Author: Mark Wiebe <mwwiebe@gmail.com>
:Content-Type: text/x-rst
:Created: 25-Nov-2010
:Status: Final
*****************
Table of contents
*****************
.. cont... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0052-python-api-cleanup.rst | .. _NEP52:
=========================================
NEP 52 — Python API cleanup for NumPy 2.0
=========================================
:Author: Ralf Gommers <ralf.gommers@gmail.com>
:Author: Stéfan van der Walt <stefanv@berkeley.edu>
:Author: Nathan Goldbaum <ngoldbaum@quansight.com>
:Author: Mateusz Sokół <msokol@... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0009-structured_array_extensions.rst | .. _NEP09:
===================================
NEP 9 — Structured array extensions
===================================
:Status: Deferred
1. Create with-style context that makes "named-columns" available as names in the namespace.
with np.columns(array):
price = unit * quantity
2. Allow structured arra... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0051-scalar-representation.rst | .. _NEP51:
=====================================================
NEP 51 — Changing the representation of NumPy scalars
=====================================================
:Author: Sebastian Berg
:Status: Accepted
:Type: Standards Track
:Created: 2022-09-13
:Resolution: https://mail.python.org/archives/list/numpy-dis... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/finished.rst.tmpl | Finished NEPs
-------------
.. toctree::
:maxdepth: 1
{% for nep, tags in neps.items() if tags['Status'] == 'Final' %}
{{ tags['Title'] }} <{{ tags['Filename'] }}>
{% endfor %}
| 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0042-new-dtypes.rst | .. _NEP42:
==============================================================================
NEP 42 — New and extensible DTypes
==============================================================================
:title: New and extensible DTypes
:Author: Sebastian Berg
:Author: Ben Nathanson
:Author: Marten van Kerkwijk
:Sta... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0002-warnfix.rst | .. _NEP02:
=================================================================================
NEP 2 — A proposal to build numpy without warning with a big set of warning flags
=================================================================================
:Author: David Cournapeau
:Contact: david@ar.media.kyoto-u.ac... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0047-array-api-standard.rst | .. _NEP47:
========================================
NEP 47 — Adopting the array API standard
========================================
:Author: Ralf Gommers <ralf.gommers@gmail.com>
:Author: Stephan Hoyer <shoyer@gmail.com>
:Author: Aaron Meurer <asmeurer@gmail.com>
:Status: Draft
:Type: Standards Track
:Created: 2021... | 0 |
public_repos/numpy/doc | public_repos/numpy/doc/neps/nep-0048-spending-project-funds.rst | .. _NEP48:
=====================================
NEP 48 — Spending NumPy project funds
=====================================
:Author: Ralf Gommers <ralf.gommers@gmail.com>
:Author: Inessa Pawson <inessa@albuscode.org>
:Author: Stefan van der Walt <stefanv@berkeley.edu>
:Status: Draft
:Type: Informational
:Created: 20... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.