Offset 1, 5 lines modified | Offset 1, 5 lines modified | ||
1 | · | 1 | ·abde7a449ceacf7bfa89ea5cf749aa98·5813872·doc·optional·python-numpy-doc_2.2.4+ds-1_all.deb |
2 | ·ed4ae6572e28f8b1dbd938419975210d·14383292·debug·optional·python3-numpy-dbgsym_2.2.4+ds-1_arm64.deb | 2 | ·ed4ae6572e28f8b1dbd938419975210d·14383292·debug·optional·python3-numpy-dbgsym_2.2.4+ds-1_arm64.deb |
3 | ·3a5b3ecec4a4b617987f388521dd977f·136096·python·optional·python3-numpy-dev_2.2.4+ds-1_arm64.deb | 3 | ·3a5b3ecec4a4b617987f388521dd977f·136096·python·optional·python3-numpy-dev_2.2.4+ds-1_arm64.deb |
4 | ·eda4b103877c2256a35928417850a972·3604092·python·optional·python3-numpy_2.2.4+ds-1_arm64.deb | 4 | ·eda4b103877c2256a35928417850a972·3604092·python·optional·python3-numpy_2.2.4+ds-1_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-04-01·19:45:23.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-04-01·19:45:23.000000·debian-binary |
2 | -rw-r--r--···0········0········0····648 | 2 | -rw-r--r--···0········0········0····64872·2025-04-01·19:45:23.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··574 | 3 | -rw-r--r--···0········0········0··5748808·2025-04-01·19:45:23.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·python-numpy-doc | 1 | Package:·python-numpy-doc |
2 | Source:·numpy | 2 | Source:·numpy |
3 | Version:·1:2.2.4+ds-1 | 3 | Version:·1:2.2.4+ds-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org> | 5 | Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org> |
6 | Installed-Size:·10071 | 6 | Installed-Size:·100718 |
7 | Depends:·libjs-sphinxdoc·(>=·8.1) | 7 | Depends:·libjs-sphinxdoc·(>=·8.1) |
8 | Suggests:·python-imageio-doc,·python-pandas-doc,·python-pytest-doc,·python-scipy-doc,·python-skimage-doc,·python3-doc | 8 | Suggests:·python-imageio-doc,·python-pandas-doc,·python-pytest-doc,·python-scipy-doc,·python-skimage-doc,·python3-doc |
9 | Section:·doc | 9 | Section:·doc |
10 | Priority:·optional | 10 | Priority:·optional |
11 | Multi-Arch:·foreign | 11 | Multi-Arch:·foreign |
12 | Homepage:·http://www.numpy.org/ | 12 | Homepage:·http://www.numpy.org/ |
13 | Description:·Python·library·for·numerical·computations·(Documentation) | 13 | Description:·Python·library·for·numerical·computations·(Documentation) |
Offset 2578, 15 lines modified | Offset 2578, 15 lines modified | ||
2578 | -rw-r--r--···0·root·········(0)·root·········(0)····42758·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.wald.html | 2578 | -rw-r--r--···0·root·········(0)·root·········(0)····42758·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.wald.html |
2579 | -rw-r--r--···0·root·········(0)·root·········(0)····47423·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.weibull.html | 2579 | -rw-r--r--···0·root·········(0)·root·········(0)····47423·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.weibull.html |
2580 | -rw-r--r--···0·root·········(0)·root·········(0)····45546·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.zipf.html | 2580 | -rw-r--r--···0·root·········(0)·root·········(0)····45546·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generated/numpy.random.zipf.html |
2581 | -rw-r--r--···0·root·········(0)·root·········(0)····82403·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generator.html | 2581 | -rw-r--r--···0·root·········(0)·root·········(0)····82403·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/generator.html |
2582 | -rw-r--r--···0·root·········(0)·root·········(0)····45982·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/index.html | 2582 | -rw-r--r--···0·root·········(0)·root·········(0)····45982·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/index.html |
2583 | -rw-r--r--···0·root·········(0)·root·········(0)····89078·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/legacy.html | 2583 | -rw-r--r--···0·root·········(0)·root·········(0)····89078·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/legacy.html |
2584 | -rw-r--r--···0·root·········(0)·root·········(0)····35540·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/multithreading.html | 2584 | -rw-r--r--···0·root·········(0)·root·········(0)····35540·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/multithreading.html |
2585 | -rw-r--r--···0·root·········(0)·root·········(0)····4 | 2585 | -rw-r--r--···0·root·········(0)·root·········(0)····44923·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/new-or-different.html |
2586 | -rw-r--r--···0·root·········(0)·root·········(0)····52723·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/parallel.html | 2586 | -rw-r--r--···0·root·········(0)·root·········(0)····52723·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/parallel.html |
2587 | -rw-r--r--···0·root·········(0)·root·········(0)····38070·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/performance.html | 2587 | -rw-r--r--···0·root·········(0)·root·········(0)····38070·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/performance.html |
2588 | -rw-r--r--···0·root·········(0)·root·········(0)····41915·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/upgrading-pcg64.html | 2588 | -rw-r--r--···0·root·········(0)·root·········(0)····41915·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/random/upgrading-pcg64.html |
2589 | -rw-r--r--···0·root·········(0)·root·········(0)····45998·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.array-creation.html | 2589 | -rw-r--r--···0·root·········(0)·root·········(0)····45998·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.array-creation.html |
2590 | -rw-r--r--···0·root·········(0)·root·········(0)····50957·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.array-manipulation.html | 2590 | -rw-r--r--···0·root·········(0)·root·········(0)····50957·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.array-manipulation.html |
2591 | -rw-r--r--···0·root·········(0)·root·········(0)····27535·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.bitwise.html | 2591 | -rw-r--r--···0·root·········(0)·root·········(0)····27535·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.bitwise.html |
2592 | -rw-r--r--···0·root·········(0)·root·········(0)····54450·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.char.html | 2592 | -rw-r--r--···0·root·········(0)·root·········(0)····54450·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.char.html |
Offset 2610, 15 lines modified | Offset 2610, 15 lines modified | ||
2610 | -rw-r--r--···0·root·········(0)·root·········(0)····24374·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.matlib.html | 2610 | -rw-r--r--···0·root·········(0)·root·········(0)····24374·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.matlib.html |
2611 | -rw-r--r--···0·root·········(0)·root·········(0)····26288·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.other.html | 2611 | -rw-r--r--···0·root·········(0)·root·········(0)····26288·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.other.html |
2612 | -rw-r--r--···0·root·········(0)·root·········(0)····37419·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials-package.html | 2612 | -rw-r--r--···0·root·········(0)·root·········(0)····37419·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials-package.html |
2613 | -rw-r--r--···0·root·········(0)·root·········(0)····46847·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.chebyshev.html | 2613 | -rw-r--r--···0·root·········(0)·root·········(0)····46847·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.chebyshev.html |
2614 | -rw-r--r--···0·root·········(0)·root·········(0)····51499·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.classes.html | 2614 | -rw-r--r--···0·root·········(0)·root·········(0)····51499·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.classes.html |
2615 | -rw-r--r--···0·root·········(0)·root·········(0)····43104·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.hermite.html | 2615 | -rw-r--r--···0·root·········(0)·root·········(0)····43104·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.hermite.html |
2616 | -rw-r--r--···0·root·········(0)·root·········(0)····43639·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.hermite_e.html | 2616 | -rw-r--r--···0·root·········(0)·root·········(0)····43639·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.hermite_e.html |
2617 | -rw-r--r--···0·root·········(0)·root·········(0)····4758 | 2617 | -rw-r--r--···0·root·········(0)·root·········(0)····47585·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.html |
2618 | -rw-r--r--···0·root·········(0)·root·········(0)····43031·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.laguerre.html | 2618 | -rw-r--r--···0·root·········(0)·root·········(0)····43031·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.laguerre.html |
2619 | -rw-r--r--···0·root·········(0)·root·········(0)····42812·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.legendre.html | 2619 | -rw-r--r--···0·root·········(0)·root·········(0)····42812·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.legendre.html |
2620 | -rw-r--r--···0·root·········(0)·root·········(0)····28772·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.poly1d.html | 2620 | -rw-r--r--···0·root·········(0)·root·········(0)····28772·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.poly1d.html |
2621 | -rw-r--r--···0·root·········(0)·root·········(0)····41877·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.polynomial.html | 2621 | -rw-r--r--···0·root·········(0)·root·········(0)····41877·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.polynomial.html |
2622 | -rw-r--r--···0·root·········(0)·root·········(0)····26623·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.polyutils.html | 2622 | -rw-r--r--···0·root·········(0)·root·········(0)····26623·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.polynomials.polyutils.html |
2623 | -rw-r--r--···0·root·········(0)·root·········(0)····26761·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.rec.html | 2623 | -rw-r--r--···0·root·········(0)·root·········(0)····26761·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.rec.html |
2624 | -rw-r--r--···0·root·········(0)·root·········(0)····26422·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.set.html | 2624 | -rw-r--r--···0·root·········(0)·root·········(0)····26422·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/reference/routines.set.html |
Offset 2755, 15 lines modified | Offset 2755, 15 lines modified | ||
2755 | -rw-r--r--···0·root·········(0)·root·········(0)····31655·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.1-notes.html | 2755 | -rw-r--r--···0·root·········(0)·root·········(0)····31655·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.1-notes.html |
2756 | -rw-r--r--···0·root·········(0)·root·········(0)····32348·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.2-notes.html | 2756 | -rw-r--r--···0·root·········(0)·root·········(0)····32348·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.2-notes.html |
2757 | -rw-r--r--···0·root·········(0)·root·········(0)····32865·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.3-notes.html | 2757 | -rw-r--r--···0·root·········(0)·root·········(0)····32865·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.3-notes.html |
2758 | -rw-r--r--···0·root·········(0)·root·········(0)····32016·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.4-notes.html | 2758 | -rw-r--r--···0·root·········(0)·root·········(0)····32016·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/2.2.4-notes.html |
2759 | -rw-r--r--···0·root·········(0)·root·········(0)····13407·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/template.html | 2759 | -rw-r--r--···0·root·········(0)·root·········(0)····13407·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release/template.html |
2760 | -rw-r--r--···0·root·········(0)·root·········(0)····90990·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release.html | 2760 | -rw-r--r--···0·root·········(0)·root·········(0)····90990·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/release.html |
2761 | -rw-r--r--···0·root·········(0)·root·········(0)····12397·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/search.html | 2761 | -rw-r--r--···0·root·········(0)·root·········(0)····12397·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/search.html |
2762 | -rw-r--r--···0·root·········(0)·root·········(0)··268799 | 2762 | -rw-r--r--···0·root·········(0)·root·········(0)··2687990·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/searchindex.js |
2763 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/ | 2763 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/ |
2764 | -rw-r--r--···0·root·········(0)·root·········(0)···177614·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/absolute_beginners.html | 2764 | -rw-r--r--···0·root·········(0)·root·········(0)···177614·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/absolute_beginners.html |
2765 | -rw-r--r--···0·root·········(0)·root·········(0)····50529·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.broadcasting.html | 2765 | -rw-r--r--···0·root·········(0)·root·········(0)····50529·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.broadcasting.html |
2766 | -rw-r--r--···0·root·········(0)·root·········(0)····33464·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.copies.html | 2766 | -rw-r--r--···0·root·········(0)·root·········(0)····33464·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.copies.html |
2767 | -rw-r--r--···0·root·········(0)·root·········(0)····64100·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.creation.html | 2767 | -rw-r--r--···0·root·········(0)·root·········(0)····64100·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.creation.html |
2768 | -rw-r--r--···0·root·········(0)·root·········(0)····65763·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.dispatch.html | 2768 | -rw-r--r--···0·root·········(0)·root·········(0)····65763·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.dispatch.html |
2769 | -rw-r--r--···0·root·········(0)·root·········(0)····18746·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.html | 2769 | -rw-r--r--···0·root·········(0)·root·········(0)····18746·2025-04-01·19:45:23.000000·./usr/share/doc/python-numpy/html/user/basics.html |
Offset 536, 35 lines modified | Offset 536, 34 lines modified | ||
536 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[1]:·</span><span·class="kn">import</span>·<span·class="nn">numpy.random</span> | 536 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[1]:·</span><span·class="kn">import</span>·<span·class="nn">numpy.random</span> |
537 | <span·class="gp">In·[2]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> | 537 | <span·class="gp">In·[2]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> |
538 | <span·class="gp">In·[3]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_normal(100000) | 538 | <span·class="gp">In·[3]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_normal(100000) |
539 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_normal(100000) | 539 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_normal(100000) |
540 | <span·class="gp">···...:·</span> | 540 | <span·class="gp">···...:·</span> |
541 | <span·class="go">The·slowest·run·took·1 | 541 | <span·class="go">The·slowest·run·took·11.70·times·longer·than·the·fastest.·This·could·mean·that·an·intermediate·result·is·being·cached.</span> |
542 | <span·class="go"> | 542 | <span·class="go">2.29·ms·+-·3.37·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> |
543 | <span·class="go">The·slowest·run·took· | 543 | <span·class="go">The·slowest·run·took·4.29·times·longer·than·the·fastest.·This·could·mean·that·an·intermediate·result·is·being·cached.</span> |
544 | <span·class="go"> | 544 | <span·class="go">3.7·ms·+-·2.84·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> |
545 | </pre></div> | 545 | </pre></div> |
546 | </div> | 546 | </div> |
547 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[4]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_exponential(100000) | 547 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[4]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_exponential(100000) |
548 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_exponential(100000) | 548 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_exponential(100000) |
549 | <span·class="gp">···...:·</span> | 549 | <span·class="gp">···...:·</span> |
550 | <span·class="go">817·us·+-·38.1·us·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> | ||
550 | <span·class="go">The·slowest·run·took· | 551 | <span·class="go">The·slowest·run·took·6.15·times·longer·than·the·fastest.·This·could·mean·that·an·intermediate·result·is·being·cached.</span> |
551 | <span·class="go">2.15·ms·+-·2.82·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> | ||
552 | <span·class="go">The·slowest·run·took·5.65·times·longer·than·the·fastest.·This·could·mean·that·an·intermediate·result·is·being·cached.</span> | ||
553 | <span·class="go"> | 552 | <span·class="go">3.04·ms·+-·3.13·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> |
554 | </pre></div> | 553 | </pre></div> |
555 | </div> | 554 | </div> |
556 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_gamma(3.0,·100000) | 555 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·rng.standard_gamma(3.0,·100000) |
557 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_gamma(3.0,·100000) | 556 | <span·class="gp">···...:·</span><span·class="o">%</span><span·class="k">timeit</span>·-n·1·numpy.random.standard_gamma(3.0,·100000) |
558 | <span·class="gp">···...:·</span> | 557 | <span·class="gp">···...:·</span> |
558 | <span·class="go">2.95·ms·+-·1.41·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> | ||
559 | <span·class="go">The·slowest·run·took·4. | 559 | <span·class="go">The·slowest·run·took·4.57·times·longer·than·the·fastest.·This·could·mean·that·an·intermediate·result·is·being·cached.</span> |
560 | <span·class="go"> | 560 | <span·class="go">9.72·ms·+-·6.98·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> |
561 | <span·class="go">9.08·ms·+-·3.97·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each)</span> | ||
562 | </pre></div> | 561 | </pre></div> |
563 | </div> | 562 | </div> |
564 | <ul·class="simple"> | 563 | <ul·class="simple"> |
565 | <li><p><a·class="reference·internal"·href="generated/numpy.random.Generator.integers.html#numpy.random.Generator.integers"·title="numpy.random.Generator.integers"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">integers</span></code></a>·is·now·the·canonical·way·to·generate·integer | 564 | <li><p><a·class="reference·internal"·href="generated/numpy.random.Generator.integers.html#numpy.random.Generator.integers"·title="numpy.random.Generator.integers"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">integers</span></code></a>·is·now·the·canonical·way·to·generate·integer |
566 | random·numbers·from·a·discrete·uniform·distribution.·This·replaces·both | 565 | random·numbers·from·a·discrete·uniform·distribution.·This·replaces·both |
567 | <a·class="reference·internal"·href="generated/numpy.random.randint.html#numpy.random.randint"·title="numpy.random.randint"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">randint</span></code></a>·and·the·deprecated·<a·class="reference·internal"·href="generated/numpy.random.random_integers.html#numpy.random.random_integers"·title="numpy.random.random_integers"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">random_integers</span></code></a>.</p></li> | 566 | <a·class="reference·internal"·href="generated/numpy.random.randint.html#numpy.random.randint"·title="numpy.random.randint"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">randint</span></code></a>·and·the·deprecated·<a·class="reference·internal"·href="generated/numpy.random.random_integers.html#numpy.random.random_integers"·title="numpy.random.random_integers"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">random_integers</span></code></a>.</p></li> |
568 | <li><p>The·<a·class="reference·internal"·href="generated/numpy.random.rand.html#numpy.random.rand"·title="numpy.random.rand"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">rand</span></code></a>·and·<a·class="reference·internal"·href="generated/numpy.random.randn.html#numpy.random.randn"·title="numpy.random.randn"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">randn</span></code></a>·methods·are·only·available·through·the·legacy | 567 | <li><p>The·<a·class="reference·internal"·href="generated/numpy.random.rand.html#numpy.random.rand"·title="numpy.random.rand"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">rand</span></code></a>·and·<a·class="reference·internal"·href="generated/numpy.random.randn.html#numpy.random.randn"·title="numpy.random.randn"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">randn</span></code></a>·methods·are·only·available·through·the·legacy |
Offset 591, 21 lines modified | Offset 590, 21 lines modified | ||
591 | <li><p>Standard·Exponentials·(<a·class="reference·internal"·href="generated/numpy.random.Generator.standard_exponential.html#numpy.random.Generator.standard_exponential"·title="numpy.random.Generator.standard_exponential"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">standard_exponential</span></code></a>)</p></li> | 590 | <li><p>Standard·Exponentials·(<a·class="reference·internal"·href="generated/numpy.random.Generator.standard_exponential.html#numpy.random.Generator.standard_exponential"·title="numpy.random.Generator.standard_exponential"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">standard_exponential</span></code></a>)</p></li> |
592 | </ul> | 591 | </ul> |
593 | </li> | 592 | </li> |
594 | </ul> | 593 | </ul> |
595 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[6]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> | 594 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[6]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> |
596 | <span·class="gp">In·[7]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">float64</span><span·class="p">)</span> | 595 | <span·class="gp">In·[7]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">float64</span><span·class="p">)</span> |
597 | <span·class="gh">Out[7]:·</span><span·class="go">array([0. | 596 | <span·class="gh">Out[7]:·</span><span·class="go">array([0.94041448,·0.19110624,·0.94988671])</span> |
598 | <span·class="gp">In·[8]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">float32</span><span·class="p">)</span> | 597 | <span·class="gp">In·[8]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">float32</span><span·class="p">)</span> |
599 | <span·class="gh">Out[8]:·</span><span·class="go">array([0. | 598 | <span·class="gh">Out[8]:·</span><span·class="go">array([0.7870627·,·0.8089857·,·0.85572165],·dtype=float32)</span> |
600 | <span·class="gp">In·[9]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">integers</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">256</span><span·class="p">,</span>·<span·class="n">size</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">uint8</span><span·class="p">)</span> | 599 | <span·class="gp">In·[9]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">integers</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">256</span><span·class="p">,</span>·<span·class="n">size</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="n">dtype</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">uint8</span><span·class="p">)</span> |
601 | <span·class="gh">Out[9]:·</span><span·class="go">array([ | 600 | <span·class="gh">Out[9]:·</span><span·class="go">array([131,··55,·201],·dtype=uint8)</span> |
602 | </pre></div> | 601 | </pre></div> |
603 | </div> | 602 | </div> |
604 | <ul> | 603 | <ul> |
605 | <li><p>Optional·<code·class="docutils·literal·notranslate"><span·class="pre">out</span></code>·argument·that·allows·existing·arrays·to·be·filled·for | 604 | <li><p>Optional·<code·class="docutils·literal·notranslate"><span·class="pre">out</span></code>·argument·that·allows·existing·arrays·to·be·filled·for |
606 | select·distributions</p> | 605 | select·distributions</p> |
607 | <ul·class="simple"> | 606 | <ul·class="simple"> |
608 | <li><p>Uniforms·(<a·class="reference·internal"·href="generated/numpy.random.Generator.random.html#numpy.random.Generator.random"·title="numpy.random.Generator.random"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">random</span></code></a>)</p></li> | 607 | <li><p>Uniforms·(<a·class="reference·internal"·href="generated/numpy.random.Generator.random.html#numpy.random.Generator.random"·title="numpy.random.Generator.random"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">random</span></code></a>)</p></li> |
Offset 618, 18 lines modified | Offset 617, 18 lines modified | ||
618 | </li> | 617 | </li> |
619 | </ul> | 618 | </ul> |
620 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[10]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> | 619 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[10]:·</span><span·class="n">rng</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">random</span><span·class="o">.</span><span·class="n">default_rng</span><span·class="p">()</span> |
621 | <span·class="gp">In·[11]:·</span><span·class="n">existing</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">zeros</span><span·class="p">(</span><span·class="mi">4</span><span·class="p">)</span> | 620 | <span·class="gp">In·[11]:·</span><span·class="n">existing</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">zeros</span><span·class="p">(</span><span·class="mi">4</span><span·class="p">)</span> |
622 | <span·class="gp">In·[12]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="n">out</span><span·class="o">=</span><span·class="n">existing</span><span·class="p">[:</span><span·class="mi">2</span><span·class="p">])</span> | 621 | <span·class="gp">In·[12]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">random</span><span·class="p">(</span><span·class="n">out</span><span·class="o">=</span><span·class="n">existing</span><span·class="p">[:</span><span·class="mi">2</span><span·class="p">])</span> |
623 | <span·class="gh">Out[12]:·</span><span·class="go">array([0. | 622 | <span·class="gh">Out[12]:·</span><span·class="go">array([0.5927328·,·0.86546345])</span> |
624 | <span·class="gp">In·[13]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">existing</span><span·class="p">)</span> | 623 | <span·class="gp">In·[13]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">existing</span><span·class="p">)</span> |
625 | <span·class="go">[0. | 624 | <span·class="go">[0.5927328··0.86546345·0.·········0.········]</span> |
626 | </pre></div> | 625 | </pre></div> |
627 | </div> | 626 | </div> |
628 | <ul·class="simple"> | 627 | <ul·class="simple"> |
629 | <li><p>Optional·<code·class="docutils·literal·notranslate"><span·class="pre">axis</span></code>·argument·for·methods·like·<a·class="reference·internal"·href="generated/numpy.random.Generator.choice.html#numpy.random.Generator.choice"·title="numpy.random.Generator.choice"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">choice</span></code></a>, | 628 | <li><p>Optional·<code·class="docutils·literal·notranslate"><span·class="pre">axis</span></code>·argument·for·methods·like·<a·class="reference·internal"·href="generated/numpy.random.Generator.choice.html#numpy.random.Generator.choice"·title="numpy.random.Generator.choice"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">choice</span></code></a>, |
630 | <a·class="reference·internal"·href="generated/numpy.random.Generator.permutation.html#numpy.random.Generator.permutation"·title="numpy.random.Generator.permutation"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">permutation</span></code></a>·and·<a·class="reference·internal"·href="generated/numpy.random.Generator.shuffle.html#numpy.random.Generator.shuffle"·title="numpy.random.Generator.shuffle"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">shuffle</span></code></a>·that·controls·which | 629 | <a·class="reference·internal"·href="generated/numpy.random.Generator.permutation.html#numpy.random.Generator.permutation"·title="numpy.random.Generator.permutation"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">permutation</span></code></a>·and·<a·class="reference·internal"·href="generated/numpy.random.Generator.shuffle.html#numpy.random.Generator.shuffle"·title="numpy.random.Generator.shuffle"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">shuffle</span></code></a>·that·controls·which |
631 | axis·an·operation·is·performed·over·for·multi-dimensional·arrays.</p></li> | 630 | axis·an·operation·is·performed·over·for·multi-dimensional·arrays.</p></li> |
632 | </ul> | 631 | </ul> |
Offset 641, 25 lines modified | Offset 640, 25 lines modified | ||
641 | <span·class="gh">Out[16]:·</span> | 640 | <span·class="gh">Out[16]:·</span> |
642 | <span·class="go">array([[·0,··1,··2,··3],</span> | 641 | <span·class="go">array([[·0,··1,··2,··3],</span> |
643 | <span·class="go">·······[·4,··5,··6,··7],</span> | 642 | <span·class="go">·······[·4,··5,··6,··7],</span> |
644 | <span·class="go">·······[·8,··9,·10,·11]])</span> | 643 | <span·class="go">·······[·8,··9,·10,·11]])</span> |
645 | <span·class="gp">In·[17]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">choice</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="n">axis</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">size</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span> | 644 | <span·class="gp">In·[17]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">choice</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="n">axis</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">size</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span> |
646 | <span·class="gh">Out[17]:·</span> | 645 | <span·class="gh">Out[17]:·</span> |
647 | <span·class="go">array([[· | 646 | <span·class="go">array([[·2,··3,··3,··2,··2],</span> |
648 | <span·class="go">·······[· | 647 | <span·class="go">·······[·6,··7,··7,··6,··6],</span> |
649 | <span·class="go">·······[1 | 648 | <span·class="go">·······[10,·11,·11,·10,·10]])</span> |
650 | <span·class="gp">In·[18]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">shuffle</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="n">axis</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>········<span·class="c1">#·Shuffle·in-place</span> | 649 | <span·class="gp">In·[18]:·</span><span·class="n">rng</span><span·class="o">.</span><span·class="n">shuffle</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="n">axis</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>········<span·class="c1">#·Shuffle·in-place</span> |
651 | <span·class="gp">In·[19]:·</span><span·class="n">a</span> | 650 | <span·class="gp">In·[19]:·</span><span·class="n">a</span> |
652 | <span·class="gh">Out[19]:·</span> | 651 | <span·class="gh">Out[19]:·</span> |
653 | <span·class="go">array([[· | 652 | <span·class="go">array([[·0,··3,··2,··1],</span> |
654 | <span·class="go">·······[· | 653 | <span·class="go">·······[·4,··7,··6,··5],</span> |
655 | <span·class="go">·······[· | 654 | <span·class="go">·······[·8,·11,·10,··9]])</span> |
656 | </pre></div> | 655 | </pre></div> |
657 | </div> | 656 | </div> |
658 | <ul·class="simple"> | 657 | <ul·class="simple"> |
659 | <li><p>Added·a·method·to·sample·from·the·complex·normal·distribution | 658 | <li><p>Added·a·method·to·sample·from·the·complex·normal·distribution |
660 | (<em·class="xref·py·py-obj">complex_normal</em>)</p></li> | 659 | (<em·class="xref·py·py-obj">complex_normal</em>)</p></li> |
661 | </ul> | 660 | </ul> |
662 | </section> | 661 | </section> |
Offset 102, 36 lines modified | Offset 102, 34 lines modified | ||
102 | In·[1]:·import·numpy.random | 102 | In·[1]:·import·numpy.random |
103 | In·[2]:·rng·=·np.random.default_rng() | 103 | In·[2]:·rng·=·np.random.default_rng() |
104 | In·[3]:·%timeit·-n·1·rng.standard_normal(100000) | 104 | In·[3]:·%timeit·-n·1·rng.standard_normal(100000) |
105 | ···...:·%timeit·-n·1·numpy.random.standard_normal(100000) | 105 | ···...:·%timeit·-n·1·numpy.random.standard_normal(100000) |
106 | ···...: | 106 | ···...: |
107 | The·slowest·run·took·1 | 107 | The·slowest·run·took·11.70·times·longer·than·the·fastest.·This·could·mean·that |
108 | an·intermediate·result·is·being·cached. | 108 | an·intermediate·result·is·being·cached. |
109 | 109 | 2.29·ms·+-·3.37·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | |
110 | The·slowest·run·took· | 110 | The·slowest·run·took·4.29·times·longer·than·the·fastest.·This·could·mean·that |
111 | an·intermediate·result·is·being·cached. | 111 | an·intermediate·result·is·being·cached. |
112 | 112 | 3.7·ms·+-·2.84·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | |
113 | In·[4]:·%timeit·-n·1·rng.standard_exponential(100000) | 113 | In·[4]:·%timeit·-n·1·rng.standard_exponential(100000) |
114 | ···...:·%timeit·-n·1·numpy.random.standard_exponential(100000) | 114 | ···...:·%timeit·-n·1·numpy.random.standard_exponential(100000) |
115 | ···...: | 115 | ···...: |
116 | 817·us·+-·38.1·us·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | ||
116 | The·slowest·run·took· | 117 | The·slowest·run·took·6.15·times·longer·than·the·fastest.·This·could·mean·that |
117 | an·intermediate·result·is·being·cached. | 118 | an·intermediate·result·is·being·cached. |
118 | 2.15·ms·+-·2.82·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | ||
119 | The·slowest·run·took·5.65·times·longer·than·the·fastest.·This·could·mean·that | ||
120 | an·intermediate·result·is·being·cached. | ||
121 | 119 | 3.04·ms·+-·3.13·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | |
122 | In·[5]:·%timeit·-n·1·rng.standard_gamma(3.0,·100000) | 120 | In·[5]:·%timeit·-n·1·rng.standard_gamma(3.0,·100000) |
123 | ···...:·%timeit·-n·1·numpy.random.standard_gamma(3.0,·100000) | 121 | ···...:·%timeit·-n·1·numpy.random.standard_gamma(3.0,·100000) |
124 | ···...: | 122 | ···...: |
123 | 2.95·ms·+-·1.41·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | ||
125 | The·slowest·run·took·4. | 124 | The·slowest·run·took·4.57·times·longer·than·the·fastest.·This·could·mean·that |
126 | an·intermediate·result·is·being·cached. | 125 | an·intermediate·result·is·being·cached. |
127 | 126 | 9.72·ms·+-·6.98·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | |
128 | 9.08·ms·+-·3.97·ms·per·loop·(mean·+-·std.·dev.·of·7·runs,·1·loop·each) | ||
129 | ····*·_\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s·is·now·the·canonical·way·to·generate·integer·random·numbers·from | 127 | ····*·_\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s·is·now·the·canonical·way·to·generate·integer·random·numbers·from |
130 | ······a·discrete·uniform·distribution.·This·replaces·both·_\x8r_\x8a_\x8n_\x8d_\x8i_\x8n_\x8t·and·the | 128 | ······a·discrete·uniform·distribution.·This·replaces·both·_\x8r_\x8a_\x8n_\x8d_\x8i_\x8n_\x8t·and·the |
131 | ······deprecated·_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m_\x8__\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s. | 129 | ······deprecated·_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m_\x8__\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s. |
132 | ····*·The·_\x8r_\x8a_\x8n_\x8d·and·_\x8r_\x8a_\x8n_\x8d_\x8n·methods·are·only·available·through·the·legacy | 130 | ····*·The·_\x8r_\x8a_\x8n_\x8d·and·_\x8r_\x8a_\x8n_\x8d_\x8n·methods·are·only·available·through·the·legacy |
133 | ······_\x8R_\x8a_\x8n_\x8d_\x8o_\x8m_\x8S_\x8t_\x8a_\x8t_\x8e. | 131 | ······_\x8R_\x8a_\x8n_\x8d_\x8o_\x8m_\x8S_\x8t_\x8a_\x8t_\x8e. |
134 | ····*·_\x8G_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8._\x8r_\x8a_\x8n_\x8d_\x8o_\x8m·is·now·the·canonical·way·to·generate·floating-point | 132 | ····*·_\x8G_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8._\x8r_\x8a_\x8n_\x8d_\x8o_\x8m·is·now·the·canonical·way·to·generate·floating-point |
135 | ······random·numbers,·which·replaces·_\x8R_\x8a_\x8n_\x8d_\x8o_\x8m_\x8S_\x8t_\x8a_\x8t_\x8e_\x8._\x8r_\x8a_\x8n_\x8d_\x8o_\x8m_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·and | 133 | ······random·numbers,·which·replaces·_\x8R_\x8a_\x8n_\x8d_\x8o_\x8m_\x8S_\x8t_\x8a_\x8t_\x8e_\x8._\x8r_\x8a_\x8n_\x8d_\x8o_\x8m_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·_\x8s_\x8a_\x8m_\x8p_\x8l_\x8e,·and |
Offset 150, 38 lines modified | Offset 148, 38 lines modified | ||
150 | ··········o·Uniforms·(_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m·and·_\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s) | 148 | ··········o·Uniforms·(_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m·and·_\x8i_\x8n_\x8t_\x8e_\x8g_\x8e_\x8r_\x8s) |
151 | ··········o·Normals·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8n_\x8o_\x8r_\x8m_\x8a_\x8l) | 149 | ··········o·Normals·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8n_\x8o_\x8r_\x8m_\x8a_\x8l) |
152 | ··········o·Standard·Gammas·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8g_\x8a_\x8m_\x8m_\x8a) | 150 | ··········o·Standard·Gammas·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8g_\x8a_\x8m_\x8m_\x8a) |
153 | ··········o·Standard·Exponentials·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8e_\x8x_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8i_\x8a_\x8l) | 151 | ··········o·Standard·Exponentials·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8e_\x8x_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8i_\x8a_\x8l) |
154 | In·[6]:·rng·=·np.random.default_rng() | 152 | In·[6]:·rng·=·np.random.default_rng() |
155 | In·[7]:·rng.random(3,·dtype=np.float64) | 153 | In·[7]:·rng.random(3,·dtype=np.float64) |
156 | Out[7]:·array([0. | 154 | Out[7]:·array([0.94041448,·0.19110624,·0.94988671]) |
157 | In·[8]:·rng.random(3,·dtype=np.float32) | 155 | In·[8]:·rng.random(3,·dtype=np.float32) |
158 | Out[8]:·array([0. | 156 | Out[8]:·array([0.7870627·,·0.8089857·,·0.85572165],·dtype=float32) |
159 | In·[9]:·rng.integers(0,·256,·size=3,·dtype=np.uint8) | 157 | In·[9]:·rng.integers(0,·256,·size=3,·dtype=np.uint8) |
160 | Out[9]:·array([ | 158 | Out[9]:·array([131,··55,·201],·dtype=uint8) |
161 | ····*·Optional·out·argument·that·allows·existing·arrays·to·be·filled·for·select | 159 | ····*·Optional·out·argument·that·allows·existing·arrays·to·be·filled·for·select |
162 | ······distributions | 160 | ······distributions |
163 | ··········o·Uniforms·(_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m) | 161 | ··········o·Uniforms·(_\x8r_\x8a_\x8n_\x8d_\x8o_\x8m) |
164 | ··········o·Normals·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8n_\x8o_\x8r_\x8m_\x8a_\x8l) | 162 | ··········o·Normals·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8n_\x8o_\x8r_\x8m_\x8a_\x8l) |
165 | ··········o·Standard·Gammas·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8g_\x8a_\x8m_\x8m_\x8a) | 163 | ··········o·Standard·Gammas·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8g_\x8a_\x8m_\x8m_\x8a) |
166 | ··········o·Standard·Exponentials·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8e_\x8x_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8i_\x8a_\x8l) | 164 | ··········o·Standard·Exponentials·(_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8__\x8e_\x8x_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8i_\x8a_\x8l) |
167 | ······This·allows·multithreading·to·fill·large·arrays·in·chunks·using·suitable | 165 | ······This·allows·multithreading·to·fill·large·arrays·in·chunks·using·suitable |
168 | ······BitGenerators·in·parallel. | 166 | ······BitGenerators·in·parallel. |
169 | In·[10]:·rng·=·np.random.default_rng() | 167 | In·[10]:·rng·=·np.random.default_rng() |
170 | In·[11]:·existing·=·np.zeros(4) | 168 | In·[11]:·existing·=·np.zeros(4) |
171 | In·[12]:·rng.random(out=existing[:2]) | 169 | In·[12]:·rng.random(out=existing[:2]) |
172 | Out[12]:·array([0. | 170 | Out[12]:·array([0.5927328·,·0.86546345]) |
173 | In·[13]:·print(existing) | 171 | In·[13]:·print(existing) |
174 | [0. | 172 | [0.5927328··0.86546345·0.·········0.········] |
175 | ····*·Optional·axis·argument·for·methods·like·_\x8c_\x8h_\x8o_\x8i_\x8c_\x8e,·_\x8p_\x8e_\x8r_\x8m_\x8u_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n·and·_\x8s_\x8h_\x8u_\x8f_\x8f_\x8l_\x8e | 173 | ····*·Optional·axis·argument·for·methods·like·_\x8c_\x8h_\x8o_\x8i_\x8c_\x8e,·_\x8p_\x8e_\x8r_\x8m_\x8u_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n·and·_\x8s_\x8h_\x8u_\x8f_\x8f_\x8l_\x8e |
176 | ······that·controls·which·axis·an·operation·is·performed·over·for·multi- | 174 | ······that·controls·which·axis·an·operation·is·performed·over·for·multi- |
177 | ······dimensional·arrays. | 175 | ······dimensional·arrays. |
178 | In·[14]:·rng·=·np.random.default_rng() | 176 | In·[14]:·rng·=·np.random.default_rng() |
179 | In·[15]:·a·=·np.arange(12).reshape((3,·4)) | 177 | In·[15]:·a·=·np.arange(12).reshape((3,·4)) |
Offset 189, 25 lines modified | Offset 187, 25 lines modified | ||
189 | Out[16]: | 187 | Out[16]: |
190 | array([[·0,··1,··2,··3], | 188 | array([[·0,··1,··2,··3], |
191 | ·······[·4,··5,··6,··7], | 189 | ·······[·4,··5,··6,··7], |
192 | ·······[·8,··9,·10,·11]]) | 190 | ·······[·8,··9,·10,·11]]) |
193 | In·[17]:·rng.choice(a,·axis=1,·size=5) | 191 | In·[17]:·rng.choice(a,·axis=1,·size=5) |
194 | Out[17]: | 192 | Out[17]: |
195 | array([[· | 193 | array([[·2,··3,··3,··2,··2], |
196 | ·······[· | 194 | ·······[·6,··7,··7,··6,··6], |
197 | ·······[1 | 195 | ·······[10,·11,·11,·10,·10]]) |
198 | In·[18]:·rng.shuffle(a,·axis=1)········#·Shuffle·in-place | 196 | In·[18]:·rng.shuffle(a,·axis=1)········#·Shuffle·in-place |
199 | In·[19]:·a | 197 | In·[19]:·a |
200 | Out[19]: | 198 | Out[19]: |
201 | array([[· | 199 | array([[·0,··3,··2,··1], |
202 | ·······[· | 200 | ·······[·4,··7,··6,··5], |
203 | ·······[· | 201 | ·······[·8,·11,·10,··9]]) |
204 | ····*·Added·a·method·to·sample·from·the·complex·normal·distribution | 202 | ····*·Added·a·method·to·sample·from·the·complex·normal·distribution |
205 | ······(c\x8co\x8om\x8mp\x8pl\x8le\x8ex\x8x_\x8_n\x8no\x8or\x8rm\x8ma\x8al\x8l) | 203 | ······(c\x8co\x8om\x8mp\x8pl\x8le\x8ex\x8x_\x8_n\x8no\x8or\x8rm\x8ma\x8al\x8l) |
206 | _\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s | 204 | _\x8p_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s |
207 | _\x8M_\x8u_\x8l_\x8t_\x8i_\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8e_\x8d_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n | 205 | _\x8M_\x8u_\x8l_\x8t_\x8i_\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8e_\x8d_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n |
208 | _\x8n_\x8e_\x8x_\x8t | 206 | _\x8n_\x8e_\x8x_\x8t |
209 | _\x8P_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e | 207 | _\x8P_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e |
210 | ©·Copyright·2008-2025,·NumPy·Developers. | 208 | ©·Copyright·2008-2025,·NumPy·Developers. |
Offset 609, 31 lines modified | Offset 609, 31 lines modified | ||
609 | <span·class="gp">In·[3]:·</span><span·class="n">y</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">)</span>·<span·class="o">+</span>·<span·class="n">rng</span><span·class="o">.</span><span·class="n">standard_normal</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">)</span> | 609 | <span·class="gp">In·[3]:·</span><span·class="n">y</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">arange</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">)</span>·<span·class="o">+</span>·<span·class="n">rng</span><span·class="o">.</span><span·class="n">standard_normal</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">)</span> |
610 | </pre></div> | 610 | </pre></div> |
611 | </div> | 611 | </div> |
612 | <p>With·the·legacy·polynomial·module,·a·linear·fit·(i.e.·polynomial·of·degree·1) | 612 | <p>With·the·legacy·polynomial·module,·a·linear·fit·(i.e.·polynomial·of·degree·1) |
613 | could·be·applied·to·these·data·with·<a·class="reference·internal"·href="generated/numpy.polyfit.html#numpy.polyfit"·title="numpy.polyfit"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">polyfit</span></code></a>:</p> | 613 | could·be·applied·to·these·data·with·<a·class="reference·internal"·href="generated/numpy.polyfit.html#numpy.polyfit"·title="numpy.polyfit"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">polyfit</span></code></a>:</p> |
614 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[4]:·</span><span·class="n">np</span><span·class="o">.</span><span·class="n">polyfit</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">deg</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 614 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[4]:·</span><span·class="n">np</span><span·class="o">.</span><span·class="n">polyfit</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">deg</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
615 | <span·class="gh">Out[4]:·</span><span·class="go">array([ | 615 | <span·class="gh">Out[4]:·</span><span·class="go">array([0.92122459,·0.40715967])</span> |
616 | </pre></div> | 616 | </pre></div> |
617 | </div> | 617 | </div> |
618 | <p>With·the·new·polynomial·API,·the·<a·class="reference·internal"·href="generated/numpy.polynomial.polynomial.Polynomial.fit.html#numpy.polynomial.polynomial.Polynomial.fit"·title="numpy.polynomial.polynomial.Polynomial.fit"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">fit</span></code></a> | 618 | <p>With·the·new·polynomial·API,·the·<a·class="reference·internal"·href="generated/numpy.polynomial.polynomial.Polynomial.fit.html#numpy.polynomial.polynomial.Polynomial.fit"·title="numpy.polynomial.polynomial.Polynomial.fit"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">fit</span></code></a> |
619 | class·method·is·preferred:</p> | 619 | class·method·is·preferred:</p> |
620 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="n">p_fitted</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">polynomial</span><span·class="o">.</span><span·class="n">Polynomial</span><span·class="o">.</span><span·class="n">fit</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">deg</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 620 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[5]:·</span><span·class="n">p_fitted</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">polynomial</span><span·class="o">.</span><span·class="n">Polynomial</span><span·class="o">.</span><span·class="n">fit</span><span·class="p">(</span><span·class="n">x</span><span·class="p">,</span>·<span·class="n">y</span><span·class="p">,</span>·<span·class="n">deg</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
621 | <span·class="gp">In·[6]:·</span><span·class="n">p_fitted</span> | 621 | <span·class="gp">In·[6]:·</span><span·class="n">p_fitted</span> |
622 | <span·class="gh">Out[6]:·</span><span·class="go">Polynomial([4. | 622 | <span·class="gh">Out[6]:·</span><span·class="go">Polynomial([4.55267033,·4.14551067],·domain=[0.,·9.],·window=[-1.,··1.],·symbol='x')</span> |
623 | </pre></div> | 623 | </pre></div> |
624 | </div> | 624 | </div> |
625 | <p>Note·that·the·coefficients·are·given·<em>in·the·scaled·domain</em>·defined·by·the | 625 | <p>Note·that·the·coefficients·are·given·<em>in·the·scaled·domain</em>·defined·by·the |
626 | linear·mapping·between·the·<code·class="docutils·literal·notranslate"><span·class="pre">window</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">domain</span></code>. | 626 | linear·mapping·between·the·<code·class="docutils·literal·notranslate"><span·class="pre">window</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">domain</span></code>. |
627 | <a·class="reference·internal"·href="generated/numpy.polynomial.polynomial.Polynomial.convert.html#numpy.polynomial.polynomial.Polynomial.convert"·title="numpy.polynomial.polynomial.Polynomial.convert"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">convert</span></code></a>·can·be·used·to·get·the | 627 | <a·class="reference·internal"·href="generated/numpy.polynomial.polynomial.Polynomial.convert.html#numpy.polynomial.polynomial.Polynomial.convert"·title="numpy.polynomial.polynomial.Polynomial.convert"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">convert</span></code></a>·can·be·used·to·get·the |
628 | coefficients·in·the·unscaled·data·domain.</p> | 628 | coefficients·in·the·unscaled·data·domain.</p> |
629 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[7]:·</span><span·class="n">p_fitted</span><span·class="o">.</span><span·class="n">convert</span><span·class="p">()</span> | 629 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[7]:·</span><span·class="n">p_fitted</span><span·class="o">.</span><span·class="n">convert</span><span·class="p">()</span> |
630 | <span·class="gh">Out[7]:·</span><span·class="go">Polynomial([ | 630 | <span·class="gh">Out[7]:·</span><span·class="go">Polynomial([0.40715967,·0.92122459],·domain=[-1.,··1.],·window=[-1.,··1.],·symbol='x')</span> |
631 | </pre></div> | 631 | </pre></div> |
632 | </div> | 632 | </div> |
633 | </section> | 633 | </section> |
634 | </section> | 634 | </section> |
635 | <section·id="documentation-for-the-polynomial-package"> | 635 | <section·id="documentation-for-the-polynomial-package"> |
636 | <h2>Documentation·for·the·<a·class="reference·internal"·href="routines.polynomials-package.html#module-numpy.polynomial"·title="numpy.polynomial"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">polynomial</span></code></a>·package<a·class="headerlink"·href="#documentation-for-the-polynomial-package"·title="Link·to·this·heading">#</a></h2> | 636 | <h2>Documentation·for·the·<a·class="reference·internal"·href="routines.polynomials-package.html#module-numpy.polynomial"·title="numpy.polynomial"><code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">polynomial</span></code></a>·package<a·class="headerlink"·href="#documentation-for-the-polynomial-package"·title="Link·to·this·heading">#</a></h2> |
637 | <p>In·addition·to·standard·power·series·polynomials,·the·polynomial·package | 637 | <p>In·addition·to·standard·power·series·polynomials,·the·polynomial·package |
Offset 150, 26 lines modified | Offset 150, 26 lines modified | ||
150 | In·[2]:·x·=·np.arange(10) | 150 | In·[2]:·x·=·np.arange(10) |
151 | In·[3]:·y·=·np.arange(10)·+·rng.standard_normal(10) | 151 | In·[3]:·y·=·np.arange(10)·+·rng.standard_normal(10) |
152 | With·the·legacy·polynomial·module,·a·linear·fit·(i.e.·polynomial·of·degree·1) | 152 | With·the·legacy·polynomial·module,·a·linear·fit·(i.e.·polynomial·of·degree·1) |
153 | could·be·applied·to·these·data·with·_\x8p_\x8o_\x8l_\x8y_\x8f_\x8i_\x8t: | 153 | could·be·applied·to·these·data·with·_\x8p_\x8o_\x8l_\x8y_\x8f_\x8i_\x8t: |
154 | In·[4]:·np.polyfit(x,·y,·deg=1) | 154 | In·[4]:·np.polyfit(x,·y,·deg=1) |
155 | Out[4]:·array([ | 155 | Out[4]:·array([0.92122459,·0.40715967]) |
156 | With·the·new·polynomial·API,·the·_\x8f_\x8i_\x8t·class·method·is·preferred: | 156 | With·the·new·polynomial·API,·the·_\x8f_\x8i_\x8t·class·method·is·preferred: |
157 | In·[5]:·p_fitted·=·np.polynomial.Polynomial.fit(x,·y,·deg=1) | 157 | In·[5]:·p_fitted·=·np.polynomial.Polynomial.fit(x,·y,·deg=1) |
158 | In·[6]:·p_fitted | 158 | In·[6]:·p_fitted |
159 | Out[6]:·Polynomial([4. | 159 | Out[6]:·Polynomial([4.55267033,·4.14551067],·domain=[0.,·9.],·window=[-1., |
160 | 1.],·symbol='x') | 160 | 1.],·symbol='x') |
161 | Note·that·the·coefficients·are·given·i\x8in\x8n·t\x8th\x8he\x8e·s\x8sc\x8ca\x8al\x8le\x8ed\x8d·d\x8do\x8om\x8ma\x8ai\x8in\x8n·defined·by·the·linear | 161 | Note·that·the·coefficients·are·given·i\x8in\x8n·t\x8th\x8he\x8e·s\x8sc\x8ca\x8al\x8le\x8ed\x8d·d\x8do\x8om\x8ma\x8ai\x8in\x8n·defined·by·the·linear |
162 | mapping·between·the·window·and·domain.·_\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t·can·be·used·to·get·the | 162 | mapping·between·the·window·and·domain.·_\x8c_\x8o_\x8n_\x8v_\x8e_\x8r_\x8t·can·be·used·to·get·the |
163 | coefficients·in·the·unscaled·data·domain. | 163 | coefficients·in·the·unscaled·data·domain. |
164 | In·[7]:·p_fitted.convert() | 164 | In·[7]:·p_fitted.convert() |
165 | Out[7]:·Polynomial([ | 165 | Out[7]:·Polynomial([0.40715967,·0.92122459],·domain=[-1.,··1.],·window=[-1., |
166 | 1.],·symbol='x') | 166 | 1.],·symbol='x') |
167 | *\x8**\x8**\x8**\x8**\x8*·D\x8Do\x8oc\x8cu\x8um\x8me\x8en\x8nt\x8ta\x8at\x8ti\x8io\x8on\x8n·f\x8fo\x8or\x8r·t\x8th\x8he\x8e·_\x8p\x8p_\x8o\x8o_\x8l\x8l_\x8y\x8y_\x8n\x8n_\x8o\x8o_\x8m\x8m_\x8i\x8i_\x8a\x8a_\x8l\x8l·p\x8pa\x8ac\x8ck\x8ka\x8ag\x8ge\x8e_\x8#\x8#·*\x8**\x8**\x8**\x8**\x8* | 167 | *\x8**\x8**\x8**\x8**\x8*·D\x8Do\x8oc\x8cu\x8um\x8me\x8en\x8nt\x8ta\x8at\x8ti\x8io\x8on\x8n·f\x8fo\x8or\x8r·t\x8th\x8he\x8e·_\x8p\x8p_\x8o\x8o_\x8l\x8l_\x8y\x8y_\x8n\x8n_\x8o\x8o_\x8m\x8m_\x8i\x8i_\x8a\x8a_\x8l\x8l·p\x8pa\x8ac\x8ck\x8ka\x8ag\x8ge\x8e_\x8#\x8#·*\x8**\x8**\x8**\x8**\x8* |
168 | In·addition·to·standard·power·series·polynomials,·the·polynomial·package | 168 | In·addition·to·standard·power·series·polynomials,·the·polynomial·package |
169 | provides·several·additional·kinds·of·polynomials·including·Chebyshev,·Hermite | 169 | provides·several·additional·kinds·of·polynomials·including·Chebyshev,·Hermite |
170 | (two·subtypes),·Laguerre,·and·Legendre·polynomials.·Each·of·these·has·an | 170 | (two·subtypes),·Laguerre,·and·Legendre·polynomials.·Each·of·these·has·an |
171 | associated·c\x8co\x8on\x8nv\x8ve\x8en\x8ni\x8ie\x8en\x8nc\x8ce\x8e·c\x8cl\x8la\x8as\x8ss\x8s·available·from·the·_\x8n_\x8u_\x8m_\x8p_\x8y_\x8._\x8p_\x8o_\x8l_\x8y_\x8n_\x8o_\x8m_\x8i_\x8a_\x8l·namespace·that | 171 | associated·c\x8co\x8on\x8nv\x8ve\x8en\x8ni\x8ie\x8en\x8nc\x8ce\x8e·c\x8cl\x8la\x8as\x8ss\x8s·available·from·the·_\x8n_\x8u_\x8m_\x8p_\x8y_\x8._\x8p_\x8o_\x8l_\x8y_\x8n_\x8o_\x8m_\x8i_\x8a_\x8l·namespace·that |
172 | provides·a·consistent·interface·for·working·with·polynomials·regardless·of | 172 | provides·a·consistent·interface·for·working·with·polynomials·regardless·of |
Offset 32361, 15 lines modified | Offset 32361, 14 lines modified | ||
32361 | ········"01t12":·55, | 32361 | ········"01t12":·55, |
32362 | ········"02":·[54,·55,·147,·162,·163,·410,·547,·566,·669,·1335,·1586,·1601,·1658,·1715,·1772,·1816,·1829,·1885,·2104], | 32362 | ········"02":·[54,·55,·147,·162,·163,·410,·547,·566,·669,·1335,·1586,·1601,·1658,·1715,·1772,·1816,·1829,·1885,·2104], |
32363 | ········"020995":·57, | 32363 | ········"020995":·57, |
32364 | ········"02284196":·1697, | 32364 | ········"02284196":·1697, |
32365 | ········"02294967":·1640, | 32365 | ········"02294967":·1640, |
32366 | ········"023":·2644, | 32366 | ········"023":·2644, |
32367 | ········"02332573e":·54, | 32367 | ········"02332573e":·54, |
32368 | ········"02471197":·2461, | ||
32369 | ········"0253":·2652, | 32368 | ········"0253":·2652, |
32370 | ········"02654825":·1891, | 32369 | ········"02654825":·1891, |
32371 | ········"02658058e":·2666, | 32370 | ········"02658058e":·2666, |
32372 | ········"02755911":·2666, | 32371 | ········"02755911":·2666, |
32373 | ········"027559113243068367":·2666, | 32372 | ········"027559113243068367":·2666, |
32374 | ········"02785049":·1867, | 32373 | ········"02785049":·1867, |
32375 | ········"02i":·[513,·2644], | 32374 | ········"02i":·[513,·2644], |
Offset 32378, 56 lines modified | Offset 32377, 55 lines modified | ||
32378 | ········"0326911":·[2335,·2378,·2425], | 32377 | ········"0326911":·[2335,·2378,·2425], |
32379 | ········"0361":·2607, | 32378 | ········"0361":·2607, |
32380 | ········"03703704":·1809, | 32379 | ········"03703704":·1809, |
32381 | ········"03943254e":·2104, | 32380 | ········"03943254e":·2104, |
32382 | ········"03968254":·[1113,·1543], | 32381 | ········"03968254":·[1113,·1543], |
32383 | ········"0396842":·680, | 32382 | ········"0396842":·680, |
32384 | ········"03t13":·55, | 32383 | ········"03t13":·55, |
32385 | ········"04":·[54,·55,·164,·410,·547,·1586,·2463,·2594,·2659], | 32384 | ········"04":·[54,·55,·164,·410,·547,·1586,·2461,·2463,·2594,·2659], |
32386 | ········"0400":·360, | 32385 | ········"0400":·360, |
32387 | ········"04097352":·2635, | 32386 | ········"04097352":·2635, |
32388 | ········"04166667":·[1544,·1585], | 32387 | ········"04166667":·[1544,·1585], |
32389 | ········"04211c6":·2521, | 32388 | ········"04211c6":·2521, |
32390 | ········"04551152e":·2104, | 32389 | ········"04551152e":·2104, |
32391 | ········"04719755":·1911, | 32390 | ········"04719755":·1911, |
32392 | ········"05":·[55,·91,·163,·410,·548,·669,·896,·1095,·1871,·2083,·2173,·2353,·2400,·2450,·2648], | 32391 | ········"05":·[55,·91,·163,·410,·548,·669,·896,·1095,·1871,·2083,·2173,·2353,·2400,·2450,·2648], |
32393 | ········"0500":·360, | 32392 | ········"0500":·360, |
32394 | ········"05093587":·2635, | 32393 | ········"05093587":·2635, |
32395 | ········"05208333":·1585, | 32394 | ········"05208333":·1585, |
32396 | ········"05263157894736836":·2257, | 32395 | ········"05263157894736836":·2257, |
32397 | ········"0549999999999997":·2083, | 32396 | ········"0549999999999997":·2083, |
32398 | ········"055":·2083, | 32397 | ········"055":·2083, |
32399 | ········"0596779":·1153, | 32398 | ········"0596779":·1153, |
32400 | ········"06":·[55,·566,·2083,·2 | 32399 | ········"06":·[55,·566,·2083,·2508], |
32401 | ········"0614962j":·[439,·453], | 32400 | ········"0614962j":·[439,·453], |
32402 | ········"0625":·[418,·624,·1645], | 32401 | ········"0625":·[418,·624,·1645], |
32403 | ········"06369197489564249":·2458, | 32402 | ········"06369197489564249":·2458, |
32404 | ········"06381726":·349, | 32403 | ········"06381726":·349, |
32405 | ········"0660":·[302,·2131], | 32404 | ········"0660":·[302,·2131], |
32406 | ········"06959433e":·[420,·947], | 32405 | ········"06959433e":·[420,·947], |
32407 | ········"07":·[55,·164,·547,·896,·897,·1335,·2170,·2 | 32406 | ········"07":·[55,·164,·547,·896,·897,·1335,·2170,·2508], |
32408 | ········"07106781e":·514, | 32407 | ········"07106781e":·514, |
32409 | ········"07407407":·1809, | 32408 | ········"07407407":·1809, |
32410 | ········"07557467":·2488, | ||
32411 | ········"07779185":·2458, | 32409 | ········"07779185":·2458, |
32412 | ········"07937323":·524, | 32410 | ········"07937323":·524, |
32413 | ········"07944154":·[657,·2655], | 32411 | ········"07944154":·[657,·2655], |
32414 | ········"08":·[55,·91,·147,·410,·523,·548,·896,·1095,·2322,·2366,·2413,·2 | 32412 | ········"08":·[55,·91,·147,·410,·523,·548,·896,·1095,·2322,·2366,·2413,·2525,·2659], |
32415 | ········"0800":·2525, | 32413 | ········"0800":·2525, |
32416 | ········"08187135":·54, | 32414 | ········"08187135":·54, |
32417 | ········"08333333":·[1645,·1871], | 32415 | ········"08333333":·[1645,·1871], |
32418 | ········"08405657":·1867, | 32416 | ········"08405657":·1867, |
32419 | ········"0855":·2642, | 32417 | ········"0855":·2642, |
32420 | ········"08553692":·38, | 32418 | ········"08553692":·38, |
32421 | ········"085537":·2642, | 32419 | ········"085537":·2642, |
32422 | ········"0856306":·1154, | 32420 | ········"0856306":·1154, |
32423 | ········"08618131":·1526, | 32421 | ········"08618131":·1526, |
32424 | ········"08703704":·[1113,·1543], | 32422 | ········"08703704":·[1113,·1543], |
32425 | ········"087300000000000003":·[2346,·2392,·2441], | 32423 | ········"087300000000000003":·[2346,·2392,·2441], |
32426 | ········"09":·[55,·2171,·2323,·2367,·2414 | 32424 | ········"09":·[55,·2171,·2323,·2367,·2414], |
32427 | ········"090097550553843":·2642, | 32425 | ········"090097550553843":·2642, |
32428 | ········"09417735":·[349,·2457,·2639], | 32426 | ········"09417735":·[349,·2457,·2639], |
32429 | ········"0943951":·1911, | 32427 | ········"0943951":·1911, |
32430 | ········"09640474436813":·675, | 32428 | ········"09640474436813":·675, |
32431 | ········"09861229":·[657,·2655], | 32429 | ········"09861229":·[657,·2655], |
32432 | ········"0999755859375":·62, | 32430 | ········"0999755859375":·62, |
32433 | ········"099975586":·62, | 32431 | ········"099975586":·62, |
Offset 32750, 15 lines modified | Offset 32748, 15 lines modified | ||
32750 | ········"1300000":·2635, | 32748 | ········"1300000":·2635, |
32751 | ········"13020":·2549, | 32749 | ········"13020":·2549, |
32752 | ········"13026":·2549, | 32750 | ········"13026":·2549, |
32753 | ········"13028":·2549, | 32751 | ········"13028":·2549, |
32754 | ········"13038":·2549, | 32752 | ········"13038":·2549, |
32755 | ········"13041":·2549, | 32753 | ········"13041":·2549, |
32756 | ········"13090":·[186,·827,·999,·1172,·1259,·1414,·1933], | 32754 | ········"13090":·[186,·827,·999,·1172,·1259,·1414,·1933], |
32757 | ········"131":·[527,·2463], | 32755 | ········"131":·[527,·2461,·2463], |
32758 | ········"1312":·485, | 32756 | ········"1312":·485, |
32759 | ········"13182611e":·[420,·947], | 32757 | ········"13182611e":·[420,·947], |
32760 | ········"132":·[527,·2330,·2374,·2421,·2463,·2637], | 32758 | ········"132":·[527,·2330,·2374,·2421,·2463,·2637], |
32761 | ········"1324274851176597e":·1867, | 32759 | ········"1324274851176597e":·1867, |
32762 | ········"133":·[527,·2330,·2374,·2421], | 32760 | ········"133":·[527,·2330,·2374,·2421], |
32763 | ········"13392":·2551, | 32761 | ········"13392":·2551, |
32764 | ········"13394":·2551, | 32762 | ········"13394":·2551, |
Offset 32917, 14 lines modified | Offset 32915, 15 lines modified | ||
32917 | ········"14510":·2560, | 32915 | ········"14510":·2560, |
32918 | ········"14512":·2557, | 32916 | ········"14512":·2557, |
32919 | ········"14513":·2557, | 32917 | ········"14513":·2557, |
32920 | ········"14515":·2557, | 32918 | ········"14515":·2557, |
32921 | ········"14518":·2560, | 32919 | ········"14518":·2560, |
32922 | ········"14519":·2557, | 32920 | ········"14519":·2557, |
32923 | ········"14527":·2560, | 32921 | ········"14527":·2560, |
32922 | ········"14551067":·2488, | ||
32924 | ········"14557":·2557, | 32923 | ········"14557":·2557, |
32925 | ········"14563":·2557, | 32924 | ········"14563":·2557, |
32926 | ········"14567":·2560, | 32925 | ········"14567":·2560, |
32927 | ········"14578":·2557, | 32926 | ········"14578":·2557, |
32928 | ········"14583":·2560, | 32927 | ········"14583":·2560, |
32929 | ········"14593":·2559, | 32928 | ········"14593":·2559, |
32930 | ········"14596":·2560, | 32929 | ········"14596":·2560, |
Offset 33157, 15 lines modified | Offset 33156, 14 lines modified | ||
33157 | ········"168":·2463, | 33156 | ········"168":·2463, |
33158 | ········"16815":·2572, | 33157 | ········"16815":·2572, |
33159 | ········"16830":·2588, | 33158 | ········"16830":·2588, |
33160 | ········"16832":·2567, | 33159 | ········"16832":·2567, |
33161 | ········"16841":·2572, | 33160 | ········"16841":·2572, |
33162 | ········"16872":·2567, | 33161 | ········"16872":·2567, |
33163 | ········"16875":·2567, | 33162 | ········"16875":·2567, |
33164 | ········"16889551":·2488, | ||
33165 | ········"16904":·2567, | 33163 | ········"16904":·2567, |
33166 | ········"16905":·2567, | 33164 | ········"16905":·2567, |
33167 | ········"16906":·2567, | 33165 | ········"16906":·2567, |
33168 | ········"16916":·2567, | 33166 | ········"16916":·2567, |
33169 | ········"16922":·2567, | 33167 | ········"16922":·2567, |
33170 | ········"16938":·2572, | 33168 | ········"16938":·2572, |
33171 | ········"16959":·2568, | 33169 | ········"16959":·2568, |
Offset 33200, 15 lines modified | Offset 33198, 15 lines modified | ||
33200 | ········"17244":·2568, | 33198 | ········"17244":·2568, |
33201 | ········"17245":·2568, | 33199 | ········"17245":·2568, |
33202 | ········"17269252e":·[421,·948], | 33200 | ········"17269252e":·[421,·948], |
33203 | ········"17272":·2568, | 33201 | ········"17272":·2568, |
33204 | ········"17284":·2572, | 33202 | ········"17284":·2572, |
33205 | ········"17296777":·2635, | 33203 | ········"17296777":·2635, |
Max diff block lines reached; 27092/31326 bytes (86.48%) of diff not shown. |