<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/polynomial/_polybase.py, branch meson</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>BUG: Polynomials now copy properly (#22669)</title>
<updated>2022-11-25T05:28:35+00:00</updated>
<author>
<name>Matteo Raso</name>
<email>matteo_luigi_raso@protonmail.com</email>
</author>
<published>2022-11-25T05:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3b9c49e5bb47a979fedb151e36f4e3a00724b096'/>
<id>3b9c49e5bb47a979fedb151e36f4e3a00724b096</id>
<content type='text'>
On line 502, self.symbol.copy() was called, which
causes an AttributeError, since self.symbol is a
string, so it doesn't have a copy() method. To fix
it, I simply removed the copy() and directly assigned
the string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On line 502, self.symbol.copy() was called, which
causes an AttributeError, since self.symbol is a
string, so it doesn't have a copy() method. To fix
it, I simply removed the copy() and directly assigned
the string.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: limit the number of decimals in Polynomial representation (#21654)</title>
<updated>2022-06-14T16:58:32+00:00</updated>
<author>
<name>Lev Maximov</name>
<email>axil.github@gmail.com</email>
</author>
<published>2022-06-14T16:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a5535dc6242b0decae1e65a3d4feb220fefedc49'/>
<id>a5535dc6242b0decae1e65a3d4feb220fefedc49</id>
<content type='text'>
* limit the number of decimals in Polynomial representation

* tests pass

* parenthesize exponential notation in polynomials

* fixed a long line warning

* added polynomial printoptions tests

* polynomial printoptions typo fixed

* made switch to exp notation in polynomial display more natural

* added a test on switching polynomials to exp notation

* fixed linter errors/warnings

* support for nanstr and infstr printoptions in polynomials

* 10^8 threshold for switching to exp notation when displaying polynomials

* merged in PR #21696 fixing issue #21695

* made linter happy

* made some docstring tests pass

* fixed the docs

Co-authored-by: Lev Maximov &lt;lev.maximov@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* limit the number of decimals in Polynomial representation

* tests pass

* parenthesize exponential notation in polynomials

* fixed a long line warning

* added polynomial printoptions tests

* polynomial printoptions typo fixed

* made switch to exp notation in polynomial display more natural

* added a test on switching polynomials to exp notation

* fixed linter errors/warnings

* support for nanstr and infstr printoptions in polynomials

* 10^8 threshold for switching to exp notation when displaying polynomials

* merged in PR #21696 fixing issue #21695

* made linter happy

* made some docstring tests pass

* fixed the docs

Co-authored-by: Lev Maximov &lt;lev.maximov@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Add support for symbol to polynomial package (#16154)</title>
<updated>2022-06-01T22:02:43+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2022-06-01T22:02:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b84a53df9346a73fe8f6df0aaad8727f9bf56076'/>
<id>b84a53df9346a73fe8f6df0aaad8727f9bf56076</id>
<content type='text'>
Adds a symbol attribute to the polynomials from the np.polynomial package to allow the user to control/modify the symbol used to represent the independent variable for a polynomial expression. This attribute corresponds to the variable attribute of the poly1d class from the old np.lib.polynomial module.

Marked as draft for now as it depends on #15666 - all _str* and _repr* methods of ABCPolyBase and derived classes would need to be modified (and tested) to support this change.

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds a symbol attribute to the polynomials from the np.polynomial package to allow the user to control/modify the symbol used to represent the independent variable for a polynomial expression. This attribute corresponds to the variable attribute of the poly1d class from the old np.lib.polynomial module.

Marked as draft for now as it depends on #15666 - all _str* and _repr* methods of ABCPolyBase and derived classes would need to be modified (and tested) to support this change.

Co-authored-by: Warren Weckesser &lt;warren.weckesser@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #19905 from Samyak2/polynomial-fit-doc-formatting</title>
<updated>2021-09-22T01:42:37+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2021-09-22T01:42:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ac8f979a7b07cefa79e0c898b4ed2152e4080485'/>
<id>ac8f979a7b07cefa79e0c898b4ed2152e4080485</id>
<content type='text'>
DOC: fix docstring formatting of polynomial fit method return values.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DOC: fix docstring formatting of polynomial fit method return values.</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Typos found by codespell</title>
<updated>2021-09-21T18:29:43+00:00</updated>
<author>
<name>Dimitri Papadopoulos</name>
<email>3234522+DimitriPapadopoulos@users.noreply.github.com</email>
</author>
<published>2021-09-21T07:18:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=83960267dc097742cb67ef575504afa56f82b102'/>
<id>83960267dc097742cb67ef575504afa56f82b102</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: fix formatting of a return value of polynomial fit methods</title>
<updated>2021-09-21T08:18:08+00:00</updated>
<author>
<name>Samyak S Sarnayak</name>
<email>samyak201@gmail.com</email>
</author>
<published>2021-09-20T14:14:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=89df711a83b1cb34457bd49c73085811dcf46783'/>
<id>89df711a83b1cb34457bd49c73085811dcf46783</id>
<content type='text'>
Fixes #19897

The 2nd return value of the following methods/functions were badly
formatted and the list was all appearing in a single line. Changed them
to separate points which are rendered nicely.
 - numpy.polyfit
 - numpy.ma.polyfit
 - numpy.polynomial.polynomial.polyfit
 - numpy.polynomial.polynomial.Polynomial.fit
 - numpy.polynomial.chebyshev.chebfit
 - numpy.polynomial.chebyshev.Chebyshev.fit
 - numpy.polynomial.hermite.hermfit
 - numpy.polynomial.hermite.Hermite.fit
 - numpy.polynomial.hermite_e.hermefit
 - numpy.polynomial.hermite_e.HermiteE.fit
 - numpy.polynomial.laguerre.lagfit
 - numpy.polynomial.laguerre.Laguerre.fit
 - numpy.polynomial.legendre.legfit
 - numpy.polynomial.legendre.Legendre.fit

Also fixed erroneous links to `numpy.full` which were actually referring
to the `full` argument. Changed those to code strings (double backticks)
from single backticks.

Also fixed formatting issues in the 3rd return value of numpy.polyfit
(and hence also numpy.ma.polyfit).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #19897

The 2nd return value of the following methods/functions were badly
formatted and the list was all appearing in a single line. Changed them
to separate points which are rendered nicely.
 - numpy.polyfit
 - numpy.ma.polyfit
 - numpy.polynomial.polynomial.polyfit
 - numpy.polynomial.polynomial.Polynomial.fit
 - numpy.polynomial.chebyshev.chebfit
 - numpy.polynomial.chebyshev.Chebyshev.fit
 - numpy.polynomial.hermite.hermfit
 - numpy.polynomial.hermite.Hermite.fit
 - numpy.polynomial.hermite_e.hermefit
 - numpy.polynomial.hermite_e.HermiteE.fit
 - numpy.polynomial.laguerre.lagfit
 - numpy.polynomial.laguerre.Laguerre.fit
 - numpy.polynomial.legendre.legfit
 - numpy.polynomial.legendre.Legendre.fit

Also fixed erroneous links to `numpy.full` which were actually referring
to the `full` argument. Changed those to code strings (double backticks)
from single backticks.

Also fixed formatting issues in the 3rd return value of numpy.polyfit
(and hence also numpy.ma.polyfit).
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Adjust polyfit doc to clarify the meaning of w (#18421)</title>
<updated>2021-06-08T11:41:59+00:00</updated>
<author>
<name>Mike Jarvis</name>
<email>michael@jarvis.net</email>
</author>
<published>2021-06-08T11:41:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5c4aac16b54284a59bc5af34e731be7299cbb1d1'/>
<id>5c4aac16b54284a59bc5af34e731be7299cbb1d1</id>
<content type='text'>
* DOC: Adjust polyfit doc to clarify the meaning of w

cov='unscaled', in particular, had inconsistently referred to a weight
of 1/sigma**2, while the doc for w says it should be equal to 1/sigma.
This change clarifies w to comport with more typical meanings of
weights in weighted least squares, and makes clear that cov='unscaled'
is appropriate when the weight w**2 = 1/sigma**2.

See Issue #5261 for more discussion of the errors/confusion in
the previous doc string.

* Update doc text for w in all polynomial module fit functions

Co-authored-by: Stefan van der Walt &lt;sjvdwalt@gmail.com&gt;
Co-authored-by: Ross Barnowski &lt;rossbar@berkeley.edu&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* DOC: Adjust polyfit doc to clarify the meaning of w

cov='unscaled', in particular, had inconsistently referred to a weight
of 1/sigma**2, while the doc for w says it should be equal to 1/sigma.
This change clarifies w to comport with more typical meanings of
weights in weighted least squares, and makes clear that cov='unscaled'
is appropriate when the weight w**2 = 1/sigma**2.

See Issue #5261 for more discussion of the errors/confusion in
the previous doc string.

* Update doc text for w in all polynomial module fit functions

Co-authored-by: Stefan van der Walt &lt;sjvdwalt@gmail.com&gt;
Co-authored-by: Ross Barnowski &lt;rossbar@berkeley.edu&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: cleanup of numpy/polynomial.</title>
<updated>2021-01-28T17:21:55+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2021-01-28T17:11:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bb8990e5eba4927716ad8a93e9b92c0f3de69386'/>
<id>bb8990e5eba4927716ad8a93e9b92c0f3de69386</id>
<content type='text'>
Numpydoc format says that the colon need o be omitted if there is no
type, there were also some empty Examples Sections
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Numpydoc format says that the colon need o be omitted if there is no
type, there were also some empty Examples Sections
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Avoid using "set of" when talking about an ordered list.</title>
<updated>2020-12-29T20:18:08+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2020-12-29T17:53:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f36e940a4726abb38c4929259e8eaf00d68c3d18'/>
<id>f36e940a4726abb38c4929259e8eaf00d68c3d18</id>
<content type='text'>
... or when the input isn't/cannot be a set.  I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.

Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... or when the input isn't/cannot be a set.  I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.

Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Update reference to verbatim in a few location.</title>
<updated>2020-12-29T06:15:34+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2020-12-29T06:15:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fcaaf276ee6dc7149a9ef442111748970fa46925'/>
<id>fcaaf276ee6dc7149a9ef442111748970fa46925</id>
<content type='text'>
Single backticks default role is reference, while here it seem to be for
verbatim. Fix it in a couple of places.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Single backticks default role is reference, while here it seem to be for
verbatim. Fix it in a couple of places.
</pre>
</div>
</content>
</entry>
</feed>
