diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-07-18 04:01:19 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-07-18 04:01:19 +0000 |
commit | 4cff2fe33386c05dbf7aa2e22406faa38edfd81e (patch) | |
tree | 0b59f6450da3c7470168b1fbee41a3e17cde302e /doc/release/2.0.0-notes.rst | |
parent | d74911d5be8916efd3b6e6f0728c9685c6970608 (diff) | |
download | numpy-4cff2fe33386c05dbf7aa2e22406faa38edfd81e.tar.gz |
Merge branch 'wgt'
Diffstat (limited to 'doc/release/2.0.0-notes.rst')
-rw-r--r-- | doc/release/2.0.0-notes.rst | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/doc/release/2.0.0-notes.rst b/doc/release/2.0.0-notes.rst deleted file mode 100644 index 68314c488..000000000 --- a/doc/release/2.0.0-notes.rst +++ /dev/null @@ -1,104 +0,0 @@ -========================= -NumPy 2.0.0 Release Notes -========================= - - -Plans -===== - -This release has the following aims: - -* Python 3 compatibility -* :pep:`3118` compatibility - - -Highlights -========== - - -New features -============ - -Warning on casting complex to real -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Numpy now emits a `numpy.ComplexWarning` when a complex number is cast -into a real number. For example: - - >>> x = np.array([1,2,3]) - >>> x[:2] = np.array([1+2j, 1-2j]) - ComplexWarning: Casting complex values to real discards the imaginary part - -The cast indeed discards the imaginary part, and this may not be the -intended behavior in all cases, hence the warning. This warning can be -turned off in the standard way: - - >>> import warnings - >>> warnings.simplefilter("ignore", np.ComplexWarning) - -Dot method for ndarrays -~~~~~~~~~~~~~~~~~~~~~~~ - -Ndarrays now have the dot product also as a method, which allows writing -chains of matrix products as - - >>> a.dot(b).dot(c) - -instead of the longer alternative - - >>> np.dot(a, np.dot(b, c)) - -linalg.slogdet function -~~~~~~~~~~~~~~~~~~~~~~~ - -The slogdet function returns the sign and logarithm of the determinant -of a matrix. Because the determinant may involve the product of many -small/large values, the result is often more accurate than that obtained -by simple multiplication. - -new header -~~~~~~~~~~ - -The new header file ndarraytypes.h contains the symbols from -ndarrayobject.h that do not depend on the PY_ARRAY_UNIQUE_SYMBOL and -NO_IMPORT/_ARRAY macros. Broadly, these symbols are types, typedefs, -and enumerations; the array function calls are left in -ndarrayobject.h. This allows users to include array-related types and -enumerations without needing to concern themselves with the macro -expansions and their side- effects. - -Changes -======= - -polynomial.polynomial ---------------------- - -* The polyint and polyder functions now check that the specified number integrations or - derivations is a non-negative integer. The number 0 is a valid value for both - functions. -* A degree method has been added to the Polynomial class. -* A cutdeg method has been added to the Polynomial class. It operates like - truncate except that the argument is the desired degree of the result, - not the number of coefficients. -* The fit class function of the Polynomial class now uses None as the default - domain for the fit. The default Polynomial domain can be specified by using - [] as the domain value. - -polynomial.chebyshev --------------------- - -* The chebint and chebder functions now check that the specified number integrations or - derivations is a non-negative integer. The number 0 is a valid value for both - functions. -* A degree method has been added to the Chebyshev class. -* A cutdeg method has been added to the Chebyshev class. It operates like - truncate except that the argument is the desired degree of the result, - not the number of coefficients. -* The fit class function of the Chebyshev class now uses None as the default - domain for the fit. The default Chebyshev domain can be specified by using - [] as the domain value. - -histogram ---------- -After a two years transition period, the old behavior of the histogram function -has been phased out, and the "new" keyword has been removed. |