summaryrefslogtreecommitdiff
path: root/math
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Recursive bump for harfbuzz's new graphite2 dependency.wiz19-38/+38
2017-02-05Set LIBPATH during build, bump pkgrev.bsiegert1-1/+3
Otherwise, the library refers to a nonexistent lib in /usr/lib on Darwin.
2017-02-03vowpal_wabbit: add zlib to dependenciescheusov1-2/+3
2017-01-30+ amathleot1-1/+2
2017-01-30Import amath-1.6.2 as math/amathleot4-0/+37
Features a case sensitive command line interface, internal IEEE 754 calculations with 15 significant digits, calculations with real and complex numbers, variables and user defined functions, logarithmic and exponential functions, trigonometric and hyperbolic function and selected mathematical constants and rounding functions. Packaged by Carsten Larsen via PR pkg/51922
2017-01-25SciPy 0.18.1 is a bug-fix release with no new features compared to 0.18.0.adam2-7/+7
2017-01-25Changes 3.7.0:adam5-77/+86
* Linear Least Squares / Minimum Norm solution * Symmetric-indefinite Factorization: Aasen’s tridiagonalization * Symmetric-indefinite Factorization: New storage format for L factor in Rook Pivoting and Bunch Kaufman of LDLT * Symmetric eigenvalue problem: Two-stage algorithm for reduction to tridiagonal form * Improved Complex Jacobi SVD * LAPACKE interfaces
2017-01-25GLPK 4.61 (42:0:2) has been released.adam3-28/+27
The following modules were renamed to simplify maintenance. * src/prob.h RENAMED -> src/api/prob.h * src/glpapi01.c RENAMED -> src/api/prob1.c * src/glpapi02.c RENAMED -> src/api/prob2.c * src/glpapi03.c RENAMED -> src/api/prob3.c * src/glpapi04.c RENAMED -> src/api/prob4.c * src/glpapi05.c RENAMED -> src/api/prob5.c * src/env/tls.c TLS (thread local storage class specifier) option was added; see comments in tls.c for details. * configure.ac, config.h.in Test for TLS was added. * src/env/tls.c Dll support was added. The following modules were changed to add __cdecl specifier for functions passed to qsort (this is needed only on compiling GLPK with MSVC to run under MS Windows). * src/api/cpxbas.c * src/cglib/cfg1.c * src/cglib/gmigen.c * src/cglib/mirgen.c * src/misc/wclique1.c * src/simplex/spychuzc.c * src/glpios10.c * src/glpios11.c * examples/glpsol.c * src/glpk.h, src/env/env.c The API routine glp_version was changed to avoid initialization of the GLPK environment. The new API routine glp_config was added (but not documented yet). * INSTALL Description of the configure option '--with-zlib' was removed.
2017-01-24Mention you can use ~/.octaverc to make the change more permanent, it'smaya1-3/+4
more convenient.
2017-01-22Match upstream version more closely.wiz1-2/+2
2017-01-22Updated fftwf to 3.3.6pl1.wiz2-8/+8
FFTW 3.3.6-pl1: * Bugfix: FFTW 3.3.6 had the wrong libtool version number, and generated shared libraries of the form libfftw3.so.2.6.6 instead of libfftw3.so.3.*. FFTW 3.3.6: * The fftw_make_planner_thread_safe() API introduced in 3.3.5 didn't work, and this 3.3.6 fixes it. Sorry about that. * compilation fixes for IBM XLC * compilation fixes for threads on Windows * fix SIMD autodetection on amd64 when (_MSC_VER > 1500)
2017-01-22Updated py-numpy to 1.12.0.wiz7-71/+26
FAILED (KNOWNFAIL=8, SKIP=9, errors=1, failures=1) ========================== NumPy 1.12.0 Release Notes ========================== This release supports Python 2.7 and 3.4 - 3.6. Highlights ========== The NumPy 1.12.0 release contains a large number of fixes and improvements, but few that stand out above all others. That makes picking out the highlights somewhat arbitrary but the following may be of particular interest or indicate areas likely to have future consequences. * Order of operations in ``np.einsum`` can now be optimized for large speed improvements. * New ``signature`` argument to ``np.vectorize`` for vectorizing with core dimensions. * The ``keepdims`` argument was added to many functions. * New context manager for testing warnings * Support for BLIS in numpy.distutils * Much improved support for PyPy (not yet finished) Dropped Support =============== * Support for Python 2.6, 3.2, and 3.3 has been dropped. Added Support ============= * Support for PyPy 2.7 v5.6.0 has been added. While not complete (nditer ``updateifcopy`` is not supported yet), this is a milestone for PyPy's C-API compatibility layer. Build System Changes ==================== * Library order is preserved, instead of being reordered to match that of the directories. Deprecations ============ Assignment of ndarray object's ``data`` attribute ------------------------------------------------- Assigning the 'data' attribute is an inherently unsafe operation as pointed out in gh-7083. Such a capability will be removed in the future. Unsafe int casting of the num attribute in ``linspace`` ------------------------------------------------------- ``np.linspace`` now raises DeprecationWarning when num cannot be safely interpreted as an integer. Insufficient bit width parameter to ``binary_repr`` --------------------------------------------------- If a 'width' parameter is passed into ``binary_repr`` that is insufficient to represent the number in base 2 (positive) or 2's complement (negative) form, the function used to silently ignore the parameter and return a representation using the minimal number of bits needed for the form in question. Such behavior is now considered unsafe from a user perspective and will raise an error in the future. Future Changes ============== * In 1.13 NAT will always compare False except for ``NAT != NAT``, which will be True. In short, NAT will behave like NaN * In 1.13 np.average will preserve subclasses, to match the behavior of most other numpy functions such as np.mean. In particular, this means calls which returned a scalar may return a 0-d subclass object instead. Multiple-field manipulation of structured arrays ------------------------------------------------ In 1.13 the behavior of structured arrays involving multiple fields will change in two ways: First, indexing a structured array with multiple fields (eg, ``arr[['f1', 'f3']]``) will return a view into the original array in 1.13, instead of a copy. Note the returned view will have extra padding bytes corresponding to intervening fields in the original array, unlike the copy in 1.12, which will affect code such as ``arr[['f1', 'f3']].view(newdtype)``. Second, for numpy versions 1.6 to 1.12 assignment between structured arrays occurs "by field name": Fields in the destination array are set to the identically-named field in the source array or to 0 if the source does not have a field:: >>> a = np.array([(1,2),(3,4)], dtype=[('x', 'i4'), ('y', 'i4')]) >>> b = np.ones(2, dtype=[('z', 'i4'), ('y', 'i4'), ('x', 'i4')]) >>> b[:] = a >>> b array([(0, 2, 1), (0, 4, 3)], dtype=[('z', '<i4'), ('y', '<i4'), ('x', '<i4')]) In 1.13 assignment will instead occur "by position": The Nth field of the destination will be set to the Nth field of the source regardless of field name. The old behavior can be obtained by using indexing to reorder the fields before assignment, e.g., ``b[['x', 'y']] = a[['y', 'x']]``. Compatibility notes =================== DeprecationWarning to error --------------------------- * Indexing with floats raises ``IndexError``, e.g., a[0, 0.0]. * Indexing with non-integer array_like raises ``IndexError``, e.g., ``a['1', '2']`` * Indexing with multiple ellipsis raises ``IndexError``, e.g., ``a[..., ...]``. * Non-integers used as index values raise ``TypeError``, e.g., in ``reshape``, ``take``, and specifying reduce axis. FutureWarning to changed behavior --------------------------------- * ``np.full`` now returns an array of the fill-value's dtype if no dtype is given, instead of defaulting to float. * np.average will emit a warning if the argument is a subclass of ndarray, as the subclass will be preserved starting in 1.13. (see Future Changes) ``power`` and ``**`` raise errors for integer to negative integer powers ------------------------------------------------------------------------ The previous behavior depended on whether numpy scalar integers or numpy integer arrays were involved. For arrays * Zero to negative integer powers returned least integral value. * Both 1, -1 to negative integer powers returned correct values. * The remaining integers returned zero when raised to negative integer powers. For scalars * Zero to negative integer powers returned least integral value. * Both 1, -1 to negative integer powers returned correct values. * The remaining integers sometimes returned zero, sometimes the correct float depending on the integer type combination. All of these cases now raise a ``ValueError`` except for those integer combinations whose common type is float, for instance uint64 and int8. It was felt that a simple rule was the best way to go rather than have special exceptions for the integer units. If you need negative powers, use an inexact type. Relaxed stride checking is the default -------------------------------------- This will have some impact on code that assumed that ``F_CONTIGUOUS`` and ``C_CONTIGUOUS`` were mutually exclusive and could be set to determine the default order for arrays that are now both. The ``np.percentile`` 'midpoint' interpolation method fixed for exact indices ----------------------------------------------------------------------------- The 'midpoint' interpolator now gives the same result as 'lower' and 'higher' when the two coincide. Previous behavior of 'lower' + 0.5 is fixed. ``keepdims`` kwarg is passed through to user-class methods ---------------------------------------------------------- numpy functions that take a ``keepdims`` kwarg now pass the value through to the corresponding methods on ndarray sub-classes. Previously the ``keepdims`` keyword would be silently dropped. These functions now have the following behavior: 1. If user does not provide ``keepdims``, no keyword is passed to the underlying method. 2. Any user-provided value of ``keepdims`` is passed through as a keyword argument to the method. This will raise in the case where the method does not support a ``keepdims`` kwarg and the user explicitly passes in ``keepdims``. The following functions are changed: ``sum``, ``product``, ``sometrue``, ``alltrue``, ``any``, ``all``, ``amax``, ``amin``, ``prod``, ``mean``, ``std``, ``var``, ``nanmin``, ``nanmax``, ``nansum``, ``nanprod``, ``nanmean``, ``nanmedian``, ``nanvar``, ``nanstd`` ``bitwise_and`` identity changed -------------------------------- The previous identity was 1, it is now -1. See entry in `Improvements`_ for more explanation. ma.median warns and returns nan when unmasked invalid values are encountered ---------------------------------------------------------------------------- Similar to unmasked median the masked median `ma.median` now emits a Runtime warning and returns `NaN` in slices where an unmasked `NaN` is present. Greater consistancy in ``assert_almost_equal`` ---------------------------------------------- The precision check for scalars has been changed to match that for arrays. It is now:: abs(actual - desired) < 1.5 * 10**(-decimal) Note that this is looser than previously documented, but agrees with the previous implementation used in ``assert_array_almost_equal``. Due to the change in implementation some very delicate tests may fail that did not fail before. ``NoseTester`` behaviour of warnings during testing --------------------------------------------------- When ``raise_warnings="develop"`` is given, all uncaught warnings will now be considered a test failure. Previously only selected ones were raised. Warnings which are not caught or raised (mostly when in release mode) will be shown once during the test cycle similar to the default python settings. ``assert_warns`` and ``deprecated`` decorator more specific ----------------------------------------------------------- The ``assert_warns`` function and context manager are now more specific to the given warning category. This increased specificity leads to them being handled according to the outer warning settings. This means that no warning may be raised in cases where a wrong category warning is given and ignored outside the context. Alternatively the increased specificity may mean that warnings that were incorrectly ignored will now be shown or raised. See also the new ``suppress_warnings`` context manager. The same is true for the ``deprecated`` decorator. C API ----- No changes. New Features ============ Writeable keyword argument for ``as_strided`` --------------------------------------------- ``np.lib.stride_tricks.as_strided`` now has a ``writeable`` keyword argument. It can be set to False when no write operation to the returned array is expected to avoid accidental unpredictable writes. ``axes`` keyword argument for ``rot90`` --------------------------------------- The ``axes`` keyword argument in ``rot90`` determines the plane in which the array is rotated. It defaults to ``axes=(0,1)`` as in the originial function. Generalized ``flip`` -------------------- ``flipud`` and ``fliplr`` reverse the elements of an array along axis=0 and axis=1 respectively. The newly added ``flip`` function reverses the elements of an array along any given axis. * ``np.count_nonzero`` now has an ``axis`` parameter, allowing non-zero counts to be generated on more than just a flattened array object. BLIS support in ``numpy.distutils`` ----------------------------------- Building against the BLAS implementation provided by the BLIS library is now supported. See the ``[blis]`` section in ``site.cfg.example`` (in the root of the numpy repo or source distribution). Hook in ``numpy/__init__.py`` to run distribution-specific checks ----------------------------------------------------------------- Binary distributions of numpy may need to run specific hardware checks or load specific libraries during numpy initialization. For example, if we are distributing numpy with a BLAS library that requires SSE2 instructions, we would like to check the machine on which numpy is running does have SSE2 in order to give an informative error. Add a hook in ``numpy/__init__.py`` to import a ``numpy/_distributor_init.py`` file that will remain empty (bar a docstring) in the standard numpy source, but that can be overwritten by people making binary distributions of numpy. New nanfunctions ``nancumsum`` and ``nancumprod`` added ------------------------------------------------------- Nan-functions ``nancumsum`` and ``nancumprod`` have been added to compute ``cumsum`` and ``cumprod`` by ignoring nans. ``np.interp`` can now interpolate complex values ------------------------------------------------ ``np.lib.interp(x, xp, fp)`` now allows the interpolated array ``fp`` to be complex and will interpolate at ``complex128`` precision. New polynomial evaluation function ``polyvalfromroots`` added ------------------------------------------------------------- The new function ``polyvalfromroots`` evaluates a polynomial at given points from the roots of the polynomial. This is useful for higher order polynomials, where expansion into polynomial coefficients is inaccurate at machine precision. New array creation function ``geomspace`` added ----------------------------------------------- The new function ``geomspace`` generates a geometric sequence. It is similar to ``logspace``, but with start and stop specified directly: ``geomspace(start, stop)`` behaves the same as ``logspace(log10(start), log10(stop))``. New context manager for testing warnings ---------------------------------------- A new context manager ``suppress_warnings`` has been added to the testing utils. This context manager is designed to help reliably test warnings. Specifically to reliably filter/ignore warnings. Ignoring warnings by using an "ignore" filter in Python versions before 3.4.x can quickly result in these (or similar) warnings not being tested reliably. The context manager allows to filter (as well as record) warnings similar to the ``catch_warnings`` context, but allows for easier specificity. Also printing warnings that have not been filtered or nesting the context manager will work as expected. Additionally, it is possible to use the context manager as a decorator which can be useful when multiple tests give need to hide the same warning. New masked array functions ``ma.convolve`` and ``ma.correlate`` added --------------------------------------------------------------------- These functions wrapped the non-masked versions, but propagate through masked values. There are two different propagation modes. The default causes masked values to contaminate the result with masks, but the other mode only outputs masks if there is no alternative. New ``float_power`` ufunc ------------------------- The new ``float_power`` ufunc is like the ``power`` function except all computation is done in a minimum precision of float64. There was a long discussion on the numpy mailing list of how to treat integers to negative integer powers and a popular proposal was that the ``__pow__`` operator should always return results of at least float64 precision. The ``float_power`` function implements that option. Note that it does not support object arrays. ``np.loadtxt`` now supports a single integer as ``usecol`` argument ------------------------------------------------------------------- Instead of using ``usecol=(n,)`` to read the nth column of a file it is now allowed to use ``usecol=n``. Also the error message is more user friendly when a non-integer is passed as a column index. Improved automated bin estimators for ``histogram`` --------------------------------------------------- Added 'doane' and 'sqrt' estimators to ``histogram`` via the ``bins`` argument. Added support for range-restricted histograms with automated bin estimation. ``np.roll`` can now roll multiple axes at the same time ------------------------------------------------------- The ``shift`` and ``axis`` arguments to ``roll`` are now broadcast against each other, and each specified axis is shifted accordingly. The ``__complex__`` method has been implemented for the ndarrays ---------------------------------------------------------------- Calling ``complex()`` on a size 1 array will now cast to a python complex. ``pathlib.Path`` objects now supported -------------------------------------- The standard ``np.load``, ``np.save``, ``np.loadtxt``, ``np.savez``, and similar functions can now take ``pathlib.Path`` objects as an argument instead of a filename or open file object. New ``bits`` attribute for ``np.finfo`` --------------------------------------- This makes ``np.finfo`` consistent with ``np.iinfo`` which already has that attribute. New ``signature`` argument to ``np.vectorize`` ---------------------------------------------- This argument allows for vectorizing user defined functions with core dimensions, in the style of NumPy's :ref:`generalized universal functions<c-api.generalized-ufuncs>`. This allows for vectorizing a much broader class of functions. For example, an arbitrary distance metric that combines two vectors to produce a scalar could be vectorized with ``signature='(n),(n)->()'``. See ``np.vectorize`` for full details. Emit py3kwarnings for division of integer arrays ------------------------------------------------ To help people migrate their code bases from Python 2 to Python 3, the python interpreter has a handy option -3, which issues warnings at runtime. One of its warnings is for integer division:: $ python -3 -c "2/3" -c:1: DeprecationWarning: classic int division In Python 3, the new integer division semantics also apply to numpy arrays. With this version, numpy will emit a similar warning:: $ python -3 -c "import numpy as np; np.array(2)/np.array(3)" -c:1: DeprecationWarning: numpy: classic int division numpy.sctypes now includes bytes on Python3 too ----------------------------------------------- Previously, it included str (bytes) and unicode on Python2, but only str (unicode) on Python3. Improvements ============ ``bitwise_and`` identity changed -------------------------------- The previous identity was 1 with the result that all bits except the LSB were masked out when the reduce method was used. The new identity is -1, which should work properly on twos complement machines as all bits will be set to one. Generalized Ufuncs will now unlock the GIL ------------------------------------------ Generalized Ufuncs, including most of the linalg module, will now unlock the Python global interpreter lock. Caches in `np.fft` are now bounded in total size and item count --------------------------------------------------------------- The caches in `np.fft` that speed up successive FFTs of the same length can no longer grow without bounds. They have been replaced with LRU (least recently used) caches that automatically evict no longer needed items if either the memory size or item count limit has been reached. Improved handling of zero-width string/unicode dtypes ----------------------------------------------------- Fixed several interfaces that explicitly disallowed arrays with zero-width string dtypes (i.e. ``dtype('S0')`` or ``dtype('U0')``, and fixed several bugs where such dtypes were not handled properly. In particular, changed ``ndarray.__new__`` to not implicitly convert ``dtype('S0')`` to ``dtype('S1')`` (and likewise for unicode) when creating new arrays. Integer ufuncs vectorized with AVX2 ----------------------------------- If the cpu supports it at runtime the basic integer ufuncs now use AVX2 instructions. This feature is currently only available when compiled with GCC. Order of operations optimization in ``np.einsum`` -------------------------------------------------- ``np.einsum`` now supports the ``optimize`` argument which will optimize the order of contraction. For example, ``np.einsum`` would complete the chain dot example ``np.einsum(‘ij,jk,kl->il’, a, b, c)`` in a single pass which would scale like ``N^4``; however, when ``optimize=True`` ``np.einsum`` will create an intermediate array to reduce this scaling to ``N^3`` or effectively ``np.dot(a, b).dot(c)``. Usage of intermediate tensors to reduce scaling has been applied to the general einsum summation notation. See ``np.einsum_path`` for more details. quicksort has been changed to an introsort ------------------------------------------ The quicksort kind of ``np.sort`` and ``np.argsort`` is now an introsort which is regular quicksort but changing to a heapsort when not enough progress is made. This retains the good quicksort performance while changing the worst case runtime from ``O(N^2)`` to ``O(N*log(N))``. ``ediff1d`` improved performance and subclass handling ------------------------------------------------------ The ediff1d function uses an array instead on a flat iterator for the subtraction. When to_begin or to_end is not None, the subtraction is performed in place to eliminate a copy operation. A side effect is that certain subclasses are handled better, namely astropy.Quantity, since the complete array is created, wrapped, and then begin and end values are set, instead of using concatenate. Improved precision of ``ndarray.mean`` for float16 arrays --------------------------------------------------------- The computation of the mean of float16 arrays is now carried out in float32 for improved precision. This should be useful in packages such as Theano where the precision of float16 is adequate and its smaller footprint is desireable. Changes ======= All array-like methods are now called with keyword arguments in fromnumeric.py ------------------------------------------------------------------------------ Internally, many array-like methods in fromnumeric.py were being called with positional arguments instead of keyword arguments as their external signatures were doing. This caused a complication in the downstream 'pandas' library that encountered an issue with 'numpy' compatibility. Now, all array-like methods in this module are called with keyword arguments instead. Operations on np.memmap objects return numpy arrays in most cases ----------------------------------------------------------------- Previously operations on a memmap object would misleadingly return a memmap instance even if the result was actually not memmapped. For example, ``arr + 1`` or ``arr + arr`` would return memmap instances, although no memory from the output array is memmaped. Version 1.12 returns ordinary numpy arrays from these operations. Also, reduction of a memmap (e.g. ``.sum(axis=None``) now returns a numpy scalar instead of a 0d memmap. stacklevel of warnings increased -------------------------------- The stacklevel for python based warnings was increased so that most warnings will report the offending line of the user code instead of the line the warning itself is given. Passing of stacklevel is now tested to ensure that new warnings will receive the ``stacklevel`` argument. This causes warnings with the "default" or "module" filter to be shown once for every offending user code line or user module instead of only once. On python versions before 3.4, this can cause warnings to appear that were falsely ignored before, which may be surprising especially in test suits.
2017-01-21Recursive revbump from audio/pulseaudio-10.0ryoon1-2/+2
2017-01-21FFTW 3.3.6-pl1adam2-7/+8
Bugfix: FFTW 3.3.6 had the wrong libtool version number, and generated shared libraries of the form libfftw3.so.2.6.6 instead of libfftw3.so.3.*. FFTW 3.3.6 The fftw_make_planner_thread_safe() API introduced in 3.3.5 didn't work, and this 3.3.6 fixes it. Sorry about that. Compilation fixes for IBM XLC. Compilation fixes for threads on Windows. fix SIMD autodetection on amd64 when (_MSC_VER > 1500)
2017-01-19Convert all occurrences (353 by my count) ofagc10-33/+33
MASTER_SITES= site1 \ site2 style continuation lines to be simple repeated MASTER_SITES+= site1 MASTER_SITES+= site2 lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint accordingly.
2017-01-18Update to 1.6003wen3-19/+20
Update DEPENDS Upstream changes: 2017-01-11 v1.6003 pjacklam * Fix syntax for required version of Math::BigInt::Lib. * Better checking of POD coverage. * Sync test files with Math-BigInt-1.999808. 2016-12-03 v1.6002 pjacklam * Use ExtUtils::MakeMaker rather than Module::Install in Makefile.PL * Don't use Devel::CheckLib. It fails on Windows even in cases where this distribution would build just fine. * Update BUGS file. * Remove author information in LICENSE file. * Inform that the TODO file is not up to date. * Remove INSTALL file. The information is in the README file. 2016-11-23 v1.6001 pjacklam * Sync test files with Math-BigInt-1.999801. * Correct version number in CHANGES file. 2016-11-15 v1.6000 pjacklam * Sync test files with Math-BigInt-1.999800. * Update bundled Devel::CheckLib from v1.03 to v1.07. * Math::BigInt::GMP is now a subclass of Math::BigInt::Lib, so remove pure Perl methods from Math::BigInt::GMP that are implemented in the superclass Math::BigInt::Lib. The methods removed are _digit(), _num(), _nok(), and _log_int(). The version of _log_int() implemented in Math::BigInt::GMP was buggy anyway. * Fix _check() so it doesn't give a "use of uninitialized value" warning if given an undefined "object". * Trim whitespace in all files. * Better use of the functionality in Test::More in t/bigintg.t.
2017-01-18Update to 1.3003wen2-8/+8
Update DEPENDS Upstream changes: 2017-01-11 v1.3003 pjacklam * Fix syntax for required version of Math::BigInt::Lib. * Better checking of POD coverage. * Sync test files with Math-BigInt-1.999808. * _from_hex() now accepts input without a "0x" prefix. * _from_bin() is more now efficient as it utilises the fact that Math::Pari::_hex_cvt() assumes the input is binary if the strings is prefixed by "0b". * Implement _to_hex(), _to_oct(), and _to_bin() for conversion to hexadecimal, octal, and binary without prefix. * Fix _nok() to work around a bug in Math::Pari::binomial(). It doesn't correctly handle cases where both n and k are very large. * Correct a few cases where non-OO syntax was used, e.g., "$x = _one();" should be "$x = $class -> _one();". * _inc() and _dec() now uses post-increment and post-decrement, respectively, rather than adding or subtracting one. * In test file t/01load.t, display the PARI library version number. 2016-12-03 v1.3002 pjacklam * Use ExtUtils::MakeMaker rather than Module::Install in Makefile.PL * Remove author information in LICENSE file. 2016-11-23 v1.3001 pjacklam * Sync test files with Math-BigInt-1.999801. Add t/mbi_rand.t, t/mbimbf.t, and t/mbimbf.inc since these are included in the test suite for the other backend libraries (GMP and Pari). * Add _nok() by using Pari's binomial() function. * Add _lcm() by using Pari's lcm() function. 2016-11-15 v1.3000 pjacklam * Sync test files with Math-BigInt-1.999800. * Math::BigInt::Pari is now a subclass of Math::BigInt::Lib, so remove pure Perl methods from Math::BigInt::Pari that are implemented in the superclass Math::BigInt::Lib. The methods removed are _modinv() and _log_int(). The version of _log_int() implemented in Math::BigInt::GMP was buggy anyway. * Add methods _str() and _set(), and correct _num() method.
2017-01-18Update to 1.999808wen2-7/+7
Upstream changes: 2017-01-11 v1.999808 pjacklam * In Math::BigInt and Math::BigFloat, add methods bdfac() for double factorial. Add tests for this method. * In Math::BigInt and Math::BigFloat, add methods to_hex(), to_oct(), and to_bin() for hexadecimal, octal, and binary string output without prefix. Even for Math::BigFloat there is still only support for integer output. Add tests for these methods. * Add test for as_oct() corresponding to the old tests for as_hex() and as_bin(). * In Math::BigInt::Lib, add method _dfac() for double factorial. Add corresponding tests. * In Math::BigInt::Lib, fix bug in overloaded "int". * In Math::BigInt::Lib, implement much faster versions of _from_hex(), _from_oct(), and _from_bin(). * In Makefile.PL, improve the wording in the message displayed if some of the installed backend libraries are not a subclass of Math::BigInt::Lib (and hence will not provide * Fix minor bugs in some of the author library test files (t/author-lib*.t). * Allow leading and trailing whitespace in the input to from_hex(), from_oct(), and from_bin(). Add tests to verify. This is a regressions (CPAN RT #119805). 2016-12-23 v1.999807 pjacklam * Add a message to Makefile.PL recommending upgrade if old libraries are installed. This message is more or less equivalent to the one appearing in Math-BigInt up until v1.997. * Improve the documentation (POD) in Math::BigInt::Lib. * Speed up _sqrt() and _root() in Math::BigInt::Lib. * Remove checking for exception cases (cases that would return +Inf, -Inf, or NaN) in Math::BigInt::Lib. It has been documented for a long time that such checking should be done by the caller. * Add library methods _to_bin(), _to_oct(), _to_hex(), which are equivalent to the _as_bin(), _as_oct(), and _as_hex() methods respectively, except that the _to_*() methods don't use a prefix in the output. This removes the need for the frequent removal of the various prefixes. Now each _as_*() method calls the equivalent _to_*() method, adds a prefix, and returns the output. The _to_*() methods are faster than the equivalent _as_*() methods were. * Add author test files for the methods _to_bin(), _to_oct(), and _to_hex(). * Add library method _to_bytes(). The method _as_bytes() would have been called _to_bytes() if I had thought of it earlier. The method _as_bytes() is now just an alias to _to_bytes(). The _to_bytes() method also fixes a bug that was present in the _as_bytes() method. (CPAN RT #119346). * Add author test files for the method _to_bytes(). * Add more tests for library methods _inc() and _dec(). When trying to bring the Math::BigInt::BitVect library back to life I realized that the test suite didn't catch certain errors in _inc() and _dec(). * Die if trying to use as_bytes() or from_bytes() with a backend library that doesn't support the corresponding library methods. * Correct minor errors in the output messages in the test files. * Improve/correct various comments in the source code. * More diagnostic output is displayed by the author test files if the AUTHOR_DEBUGGING environment variable is set. 2016-12-13 v1.999806 pjacklam * Add more logic to Makefile.PL regarding INSTALLDIRS (CPAN RT #119199 and #119225). * In the TODO file, remove stuff that has been implemented. 2016-12-11 v1.999805 pjacklam * Fix Makefile.PL so that this module installs over the core version. * Add more tests for _nok() (binomial coefficient "n over k"). These new tests revealed some problems with some of the backend libraries when _nok() was given very large arguments. * Remove t/Math/BigFloat/#Subclass.pm#, which is an Emacs temporary file included by accident. 2016-12-07 v1.999804 pjacklam * Implement as_bytes(), as requested (CPAN RT 119096). Also implement the inverse conversion from_bytes(). This applies to Math::BigInt only. (Alas, these methods will be inherited from Math::BigInt into Math::BigFloat, Math::BigRat etc. where the methods won't work. Fixing this class relationship is an issue of its own.) * Implement _as_bytes() and _from_bytes() in Math::BigInt::Lib. Preferably, the various backend libraries will implement faster versions of their own. Add author test files for testing these methods thorougly. * Fix from_hex(), from_oct(), and from_bin(). - When called as instance methods, the new value should be assigned to the invocand unless the invocand is read-only (a constant). - When called as instance methods, the assigned value was incorrect, if the invocand was inf or NaN. - Add tests to t/from_hex-mbf.t, t/from_oct-mbf.t, and t/from_bin-mbf.t to confirm the fix. - Add new test files t/from_hex-mbi.t, t/from_oct-mbi.t, and t/from_bin-mbi.t for better testing of these methods with Math::BigInt. * Correct typo in Math/BigInt/Lib.pm (otherise -> otherwise) (CPAN RT 118829). * Add POD coverage testing of Math::BigInt::Lib to t/03podcov.t. 2016-12-03 v1.999803 pjacklam * Remove BENCHMARK file. The information was obsolete. * Use ExtUtils::MakeMaker rather than Module::Install in Makefile.PL * Reorder CHANGES file (this file) so the newest entries appear at the top. * Fix error in test information text in various author test files. * Remove author information in LICENSE file. * Inform that the TODO file is not up to date. 2016-11-28 v1.999802 pjacklam * When bzero(), bone(), binf(), and bnan() are used as constructors, don't check whether the class allows the object to be modified. A constructor isn't modifying any existing object. This applies to both Math::BigInt and Math::BigFloat. * Improve bgcd() and blcm(). This applies to both Math::BigInt and Math::BigFloat.
2017-01-08scipy: correct the test target. this is a temporary workaround, upstreammaya1-2/+3
will likely fix it so the previous target works - it is mentioned in their documentation. (scipy issue #6498)
2017-01-07Updated ruby22-roo to 2.7.1.wiz3-8/+29
## [2.7.1] 2017-01-03 ### Fixed - Fixed regression where a CSV's encoding was being ignored [372](https://github.com/roo-rb/roo/pull/372) ## [2.7.0] 2016-12-31 ### Fixed - Added rack server for testing Roo's download capabilities [365](https://github.com/roo-rb/roo/pull/365) - Refactored tests into different formats [365](https://github.com/roo-rb/roo/pull/365) - Fixed OpenOffice for JRuby [362](https://github.com/roo-rb/roo/pull/362) - Added '0.000000' => '%.6f' number format [354](https://github.com/roo-rb/roo/pull/354) - Add additional formula cell types for to_csv [367][https://github.com/roo-rb/roo/pull/367] ### Added - Extracted formatters from Roo::Base#to_* methods [364](https://github.com/roo-rb/roo/pull/364) ## [2.6.0] 2016-12-28 ### Fixed - Fixed error if sheet name starts with a slash [348](https://github.com/roo-rb/roo/pull/348) - Fixed loading to support files on ftp [355](https://github.com/roo-rb/roo/pull/355) - Fixed Ruby 2.4.0 deprecation warnings [356](https://github.com/roo-rb/roo/pull/356) - properly return date as string [359](https://github.com/roo-rb/roo/pull/359) ### Added - Cell values can be set in a CSV [350](https://github.com/roo-rb/roo/pull/350/) - Raise an error Roo::Excelx::Extractor document is missing [358](https://github.com/roo-rb/roo/pull/358/)
2017-01-07update HOMEPAGE and MASTER_SITESzafer1-3/+3
2017-01-07termcap bl3 logic is already handled in devel/readline (pointed out by a typo inleot1-3/+1
it) Discussed with <roy>
2017-01-06Update math/grace to 5.1.25.fhajny3-13/+13
Change bl3 to pdflib-lite to fix binary package distribution. Grace-5.1.25 - killing set data from GUI and scripts now clears set comments - undid "always overwrite set comments when reading data in" from 5.1.24 - fixed Fourier transform DC-term amplitude (rep. #630) - newer versions of "make" tried to regenerate documentation (rep. #2240) Grace-5.1.24 - fixed detection of dynamic loading libraries (rep. # 2238) - install PDF docs instead of the DVI ones - added cephes/COPYING (from Debian) - a workaround for broken input of non-ASCII text under UTF8 locales - always overwrite set comments when reading data in
2017-01-05Uses termcap, not ncurses.roy1-3/+4
2017-01-05Use the curses framework.roy1-3/+6
2017-01-01Revbump after boost updateadam15-29/+30
2017-01-01Updated py-numpy to 1.11.3.wiz2-7/+7
========================== NumPy 1.11.3 Release Notes ========================== Numpy 1.11.3 fixes a bug that leads to file corruption when very large files opened in append mode are used in ``ndarray.tofile``. It supports Python versions 2.6 - 2.7 and 3.2 - 3.5. Wheels for Linux, Windows, and OS X can be found on PyPI. Contributors to maintenance/1.11.3 ================================== A total of 2 people contributed to this release. People with a "+" by their names contributed a patch for the first time. - Charles Harris - Pavel Potocek + Pull Requests Merged ==================== - `#8341 <https://github.com/numpy/numpy/pull/8341>`__: BUG: Fix ndarray.tofile large file corruption in append mode. - `#8346 <https://github.com/numpy/numpy/pull/8346>`__: TST: Fix tests in PR #8341 for NumPy 1.11.x
2017-01-01Add python-3.6 to incompatible versions.wiz11-22/+22
2016-12-31Use standard way to test for build options.wiz1-3/+6
2016-12-30Recursive revbump associated with ocaml update to 4.04.jaapb3-6/+6
2016-12-25Don't try using LuaJIT if detected.markd1-1/+2
2016-12-18Bump revision of all packages using libform, libpanel or libmenu as thejoerg1-2/+2
library name in devel/ncurses changed.
2016-12-18Update to 3.5.0wen2-7/+7
Upstream changes: gtools 3.5.0 - 2015-04-28 ------------------------- New Functions: - New roman2int() functon to convert roman numerals to integers without the range restriction of utils::as.roman(). - New asc() and chr() functions to convert between ASCII codes and characters. (Based on the 'Data Debrief' blog entry for 2011-03-09 at http://datadebrief.blogspot.com/2011/03/ascii-code-table-in-r.html). - New unByteCode() and unByteCodeAssign() functions to convert a byte-code functon to an interpeted code function. - New assignEdgewise() function for making assignments into locked environments. (Used by unByteCodeAssign().) Enhacements: - mixedsort() and mixedorder() now have arguments 'decreasing', 'na.last', and 'blank.last' arguments to control sort ordering. - mixedsort() and mixedirdeR() now support Roman numerals via the arguments 'numeric.type', and 'roman.case'. (Request by David Winsemius, suggested code changes by Henrik Bengtsson.) - speed up mixedorder() (and hence mixedsort()) by moving suppressWarnings() outside of lapply loops. (Suggestion by Henrik Bengtsson.) - The 'q' argument to quantcut() now accept an integer indicating the number of equally spaced quantile groups to create. (Suggestion and patch submitted by Ryan C. Thompson.) Bug fixes: - Removed stray browser() call in smartbind(). - ddirichlet(x, alpha) was incorrectly returning NA when for any i, x[i]=0 and alpha[i]=1. (Bug report by John Nolan.) Other changes: - Correct typographical errors in package description. gtools 3.4.2 - 2015-04-06 ------------------------- New features: - New function loadedPackages() to display name, version, and path of loaded packages (package namespaces). - New function: na.replace() to replace missing values within a vector with a specified value.` Bug fixes: - Modify keywords() to work properly in R 3.4.X and later. gtools 3.4.1 - 2014-05-27 ------------------------- Bug fixes: - smartbind() now converts all non-atomic type columns (except factor) to type character instead of generating an opaque error message. Other changes: - the argument to ASCIIfy() is now named 'x' instead of 'string'. - minor formatting changes to ASCIIfy() man page. gtools 3.4.0 - 2014-04-14 ------------------------- New features: - New ASCIIfy() function to converts character vectors to ASCII representation by escaping them as \x00 or \u0000 codes. Contributed by Arni Magnusson. gtools 3.3.1 - 2014-03-01 ------------------------- Bug fixes: - 'mixedorder' (and hence 'mixedsort') not properly handling single-character strings between numbers, so that '1a2' was being handled as a single string rather than being properly handled as c('1', 'a', '2'). gtools 3.3.0 - 2014-02-11 ------------------------- New features: - Add the getDependencies() function to return a list of dependencies for the specified package(s). Includes arguments to control whether these dependencies should be constructed using information from locally installed packages ('installed', default is TRUE), avilable CRAN packages ('available', default is TRUE) and whether to include base ('base', default=FALSE) and recommended ('recommended', default is FALSE) packages. Bug fixes: - binsearch() was returning the wrong endpoint & value when the found value was at the upper endpoint. gtools 3.2.1 - 2014-01-13 ------------------------- Bug fixes: - Resolve circular dependency with gdata gtools 3.2.0 - 2014-01-11 ------------------------- New features: - The keywords() function now accepts a function or function name as an argument and will return the list of keywords associated with the named function. - New function stars.pval() which will generate p-value significance symbols ('***', '**', etc.) Bug fixes: - R/mixedsort.R: mixedorder() was failing to correctly handle numbers including decimals due to a faulty regular expression. Other changes: - capture() and sprint() are now defunct. gtools 3.1.1 - 2013-11-06 ------------------------- Bug fixes: - Fix problem with mixedorder/mixedsort when there is zero or one elements in the argument vector. gtools 3.1.0 - 2013-09-22 ------------------------- Major changes: - The function 'addLast()' (deprecated since gtools 3.0.0) is no longer available, and has been marked defunct. Bug fixes: - Modified 'mixedorder()' to use Use 'suppressWarnings() instead of 'options(warn=-1)'. This will avoid egregious warning messages when called from within a nested environment, such as when run from within 'knitr' gtools 3.0.0 - 2013-07-06 ------------------------- Major changes: - The function 'addLast()' has been deprecated because it directly manipulates the global environment, which is expressly prohibited by the CRAN policies. - A new function, 'lastAdd()' has been created to replace 'addLast()'. The name has been changed because the two functions require different syntax. 'addLast()' was used like this: byeWorld <- function() cat("\nGoodbye World!\n") addLast(byeWorld) The new 'lastAdd()' function is used like this: byeWorld <- function() cat("\nGoodbye World!\n") .Last <- lastAdd(byeWorld) Bug fixes: - Update checkRVersion() to work with R version 3.0.0 and later. Other changes: - Remove cross-reference to (obsolete?) moc package - The function 'assert()' (deprecated since gtools 2.5.0) is no longer available and has been marked defunct. gtools 2.7.1 - 2013-03-17 ------------------------- Bug fixes: - smartbind() was not properly handling factor columns when the first data frame did not include the relevant column. gtools 2.7.0 - 2012-06-19 ------------------------- New features: - smartbind() has a new 'sep' argument to allow specification of the character(s) used to separate components of constructed column names - smartbind() has a new 'verbose' argument to provide details on how coluumns are being processed Bug fixes: - smartbind() has been enhanced to improve handling of factor and ordered factor columns.
2016-12-17Don't check pointer sign.joerg2-1/+17
2016-12-12Updated gsl to 2.3.wiz2-7/+7
* What is new in gsl-2.3: ** bug fix in documentation for gsl_linalg_LU_refine (bug #49728, Joey De Pauw) ** added gsl_multifit_linear_tsvd and gsl_multifit_wlinear_tsvd to give user more control over cutoff for truncated SVD ** added routines for Generalized Cross Validation for regularized linear least squares ** improved rstat example program and added documentation for gsl_rstat_sd_mean (Jonathan Leto) ** added function gsl_multifit_linear_rank ** bug fix in nonlinear least squares when using data weights with finite-difference Jacobian ** add 2D subspace method for large systems (multilarge_nlinear) ** bug fix in gsl_ran_beta for small parameters (bug #47646, Yu Liu) ** bug fix in gsl_complex_tan for negative imaginary arguments (bug #47347, Yu Liu) ** doc bug fix: value of golden ratio ** fixed scaling issue in 2D subspace nonlinear least squares method ** optimize dogleg methods to calculate Gauss-Newton point only when needed
2016-12-12MAKE_ENV is in OPSYSVARS -- simplify previous.wiz2-10/+4
Thanks, jperkin!
2016-12-12Wrap Dragonfly specific workaround in .if ${OPSYS} == "DragonFly"wiz1-1/+5
2016-12-12Wrap DragonFly specific workaround in .if ${OPSYS} == "DragonFly"wiz1-7/+8
2016-12-07c99 fixes build on SunOSwiedi1-1/+2
2016-12-04math/py-numpy: Restore build on DragonFlymarino1-1/+7
Linking lapack with the gold linker fails with this error: fatal error: --sysroot=: must take a non-empty argument Similar to recent fixes to math/blas and math/lapack
2016-12-04Recursive revbump from textproc/icu 58.1ryoon2-2/+4
2016-12-03math/lapack: Restore build on DragonFlymarino2-8/+8
Linking lapack with the gold linker fails with this error: fatal error: --sysroot=: must take a non-empty argument DragonFly has been using the gold linker by default for a while now. Since I don't have time to track down this linking problem, I'm going to restore the build on DragonFly by setting an environment variable that forces DF to use the classic GNU linker instead. This was already fixed on math/blas which uses the lapack common makefile, so just relocate the fix to lapack.
2016-12-03math/blas: Restore build on DragonFlymarino1-1/+7
Linking blas with the gold linker fails with this error: fatal error: --sysroot=: must take a non-empty argument DragonFly has been using the gold linker by default for a while now. Since I don't have time to track down this linking problem, I'm going to restore the build on DragonFly by setting an environment variable that forces DF to use the classic GNU linker instead. At this point in time, I don't know if BLAS is unique or if LAPACK and others need the same workaround. If the latter, this variable may need to be moved to the common LAPACK makefile.
2016-11-28Update to 0.60wen2-7/+7
Upstream changes: 0.60 2016-10-09 [ADDED] - vecfirstidx { expr } @n returns first index with expr true [FUNCTIONALITY AND PERFORMANCE] - Expanded and modified prime count sparse tables. Prime counts from 30k to 90M are 1.2x to 2.5x faster. It has no appreciable effect on the speed of prime counts larger than this size. - fromdigits works with bigint first arg, no need to stringify. Slightly faster for bigints, but slower than desired. - Various speedups and changes for fromdigits, todigits, todigitstring. - vecprod in PP for negative high-bit would return double not bigint. - Lah numbers added as Stirling numbers of the third kind. They've been in the GMP code for almost 2 years now. Also for big results, directly call the GMP code and objectify the result. - Small performance change to AKS (r,s) selection tuning. - On x86_64, use Montgomery math for Pollard/Brent Rho. This speeds up factoring significantly for large native inputs (e.g. 10-20 digits). - Use new GMP zeta and riemannr functions if possible, making some of our operations much faster without Math::MPFR. - print_primes with large args will try GMP sieve for big speedup. E.g. use bigint; print_primes(2e19,2e19+1e7); goes from 37 minutes to 7 seconds. This also removes a mistaken blank line at the end for certain ranges. - PP primes tries to use GMP. Only for calls from other PP code. - Slightly more accuracy in native ExponentialIntegral. - Slightly more accuracy in twin_prime_count_approx. - nth_twin_prime_approx was incorrect over 1e10 and over 2e16 would infinite loop due to Perl double conversion. - nth_twin_prime_approx a little faster and more accurate.
2016-11-28Update to 1.999801wen2-7/+7
Upstream changes: 2016-11-23 v1.999801 pjacklam * Fix, hopefully once and for all, the longstanding problem of handling undef as an operand to mathematical methods. The only method that accepts undef as an operand is blog(), where the second operand might be undef, as in $x->blog() or $x->blog($b), where $b is undef. The undef signifies that Euler's number should be used as the base. With this fix, we should be able to get Math::BigInt::Lite working again. * Add least common multiple method _lcm() to Math::BigInt::Lib, and add corresponding test file t/author-lib-arithmetic-binary-_lcm.t and test data file t/author-lib-arithmetic-binary-_lcm.dat. * Remove internal function __lcm() which has become redundant now that _lcm() is in the library. * Make it possible to use bgcd() and blcm() as class methods, since other methods can be used as class methods. This applies to both Math::BigInt and Math::BigFloat. * Fix blcm() with negative input. The LCM should always be non-negative. This applies to both Math::BigInt and Math::BigFloat. * Add tests for bgcd() and blcm() in t/bigintpm.t and t/bigfltpm.t. * Fix tests for blcm() assuming that LCM(0,0) should be a NaN. LCM(0,0) is 0 by convention. * Prefer Class->config('option') over Class->config()->{option}. However, this does not seem to be working for all options. It seems that this won't work properly until we move the global variables into the OO interface. * Explicitly specify the library in all test files that are shared between Math-BigInt and the library distributions (FaatCalc, GMP, Pari, ...) with, e.g., "use Math::BigInt only => 'Calc';". This way, it will fail immediately if the specified library can't be loaded rather than using the fallback library.
2016-11-25Update gnome-calculator to 3.22.2prlw12-7/+7
Overview of changes in gnome-calculator 3.22.2 * Fixed conversion unit switch (Robert Roth) * Fixed first expression with parentheses (Robert Roth) * Fixed possible errors on currency conversion (Robert Roth) * Ctrl+Backspace should only delete last number (Robert Roth) * Fixed reusing results from the history stack (Antonio Ospite) Overview of changes in gnome-calculator 3.22.1 * Headerbar layout fixes (djb) * Use dim labels for bit markers in Programming mode (djb) * Fixed history scrolling (Robert Roth) * Minor programming errors fixed (Tobias Mueller) * Vertically center headerbar button content (Lapo Calamandrei) * Updated styles for gtk+ 3.20 (Exalm) * [l10n] update Croatian translations (gogo) Overview of changes in gnome-calculator 3.22.0 * Fix base change for log, fixes #748729 (Robert Roth) * Math buttons: fix a (potential) crash loading financial dialogs (Tobias Mueller) * Updated Dutch translation master (Nathan Follens) * [l10n] update Persian translations (Arash Mousavi) Overview of changes in gnome-calculator 3.21.92 * Updated Thai translation (Akom Chotiphantawanon) * Updated Polish translation (Piotr Drąg) * Update British English translation (David King) * Disable pt translation of the manual (Emmanuele Bassi) * Updated Portuguese translation (Tiago Santos) * fix the build (Matthias Clasen) * Added Portuguese translation (Tiago Santos) * Updated Polish translation (Piotr Drąg)
2016-11-20Update math/R-XML to 3.98-1.5.alnsn2-8/+7
Prompted by beta.repology.org. Changes for minor updates 3.98-1.2 to 3.98-1.5 are unknown.
2016-11-19Octave: update to 4.2.0maya30-847/+258
pkgsrc changes: removed all patches to do with qt5 support, upstream code does it now. blindly moved some patches that were replacing INSTALL_PROGRAM to INSTALL_LIB as the build changed. added patch replacing struct tm_zone with timezone_t to accommodate for missing type in NetBSD - same as libgnu does. ok adam Summary of important user-visible changes for version 4.2: --------------------------------------------------------- ** The parser has been extended to accept, but ignore, underscore characters in numbers. This facilitates writing more legible code by using '_' as a thousands separator or to group nibbles into bytes in hex constants. Examples: 1_000_000 == 1e6 or 0xDE_AD_BE_EF ** The parser has been extended to understand binary numbers which begin with the prefix '0b' or '0B'. The value returned is Octave's default numeric class of double, not at unsigned integer class. Therefore numbers greater than flintmax, i.e., 2^53, will lose some precision. Examples: 0b101 == 5 or 0B1100_0001 == 0xC1 ** gnuplot 4.4 is now the minimum version supported by Octave. ** The default set of colors used to plot lines has been updated to be compatible with Matlab's new default color scheme. The line plot color scheme can be set with the axes property "ColorOrder". ** The default colormap is now set to "viridis" which is also the default colormap in matplotlib. This new colormap fixes some of the main issues with the old default colormap "jet" such as its bad "luminance profile" and is also more similar to Matlab's new default colormap "parula". ** The colormap function no longer supports the input argument "list" to show built-in colormaps. Use "help colormap" to find the built-in colormaps. ** The graphics command "hold on" now ensures that each new plot added to an existing plot has a different color or linestyle according to the "ColorOrder" and/or "LineStyleOrder" properties. This is equivalent to the old command "hold all" and was made for Matlab compatibility. Existing code *may* produce differently colored plots if it did not specify the color for a plot and relied on each new plot having the default first color in the "ColorOrder" property. ** When starting, Octave now looks in the function path for a file startup.m and executes any commands found there. This change was made to accommodate Matlab users. Octave has it's own configuration system based on the file .octaverc which is preferred. ** Octal ('\NNN') and hex ('\xNN') escape sequences in single quoted strings are now interpreted by the function do_string_escapes(). The *printf family of functions now supports octal and hex escape sequences in single-quoted strings for Matlab compatibility. ** Special octal and hex escape sequences for the pattern and replacement strings in regular expressions are now interpreted for Matlab compatibility. octal: '\oNNN' or '\o{NNN}' hex : '\xNN' or '\x{NN}' ** Unknown escape sequences in the replacement string for regexprep are now substituted with their unescaped version and no warning is emitted. This change was made for Matlab compatibility. Example: regexprep ('a', 'a', 'x\yz') => 'xyz' ** mkfifo now interprets the MODE argument as an octal, not decimal, integer. This is consistent with the equivalent shell command. ** linspace now returns an empty matrix if the number of requested points is 0 or a negative number. This change was made to be compatible with Matlab releases newer than 2011. In addition, Octave no longer supports matrix inputs for A or B. ** The cov function now returns the complex conjugate of the result from previous versions of Octave. This change was made for compatibility with Matlab. ** condest now works with a normest1 compatible syntax. ** The griddata function no longer plots the interpolated mesh if no output argument is requested, instead the vector or array of interpolated values is always returned for Matlab compatibility. ** The new function "light" and the corresponding graphics object provide light and shadow effects for patch and surface objects. ** The surfnorm function now returns unnormalized (magnitude != 1) normal vectors for compatibility with Matlab. ** The normal vectors returned from isonormals have been reversed to point towards smaller values for compatibility with Matlab. ** The quadl function now uses an absolute, rather than relative, tolerance for Matlab compatibility. The default tolerance is 1e-6 which may result in lower precision results than previous versions of Octave which used eps as the relative tolerance. The quadl function has also been extended to return a second output with the total number of function evaluations. ** The textscan function is now built-in and is much faster and much more Matlab-compatible than the previous m-file version. ** Dialog boxes--errordlg, helpdlg, inputdlg, listdlg, msgbox, questdlg, and warndlg--now exclusively use Qt for rendering. Java based versions have been removed. ** The axes properties "TitleFontSizeMultiplier" and "TitleFontWeight" are now implemented which control the default appearance of text created with title(). The axes property "LabelFontSizeMultiplier" is now implemented which controls the default appearance of text created with xlabel(), ylabel(), or zlabel(). ** The graphics property "box" for axes now defaults to "off". To obtain equivalent plots to previous versions of Octave use set (0, "DefaultAxesBox", "on"); in your .octaverc file. ** The graphics property "boxstyle" has been implemented. The default is "back" which draws only the back planes in a 3-D view. If the option is "full" then all planes are drawn. ** The graphics property "erasemode" has been hidden, and will eventually be removed. This property has also been removed from Matlab, and was never implemented in Octave. ** The graphics property "graphicssmoothing" for figures now controls whether anti-aliasing will be used for lines. The default is "on". ** The value "zero" for the axes properties "xaxislocation" and "yaxislocation" has been deprecated and will be removed from Octave 4.6. Use "origin" instead. ** The publish function allows easy publication of Octave script files in HTML or other formats, including figures and output created by this script. It comes with its counterpart grabcode, which lets one literally grab the HTML published code from a remote website, for example. ** The value of the MEX variable TrapFlag now defaults to 0, which will cause Octave to abort execution of a MEX file and return to the prompt if an error is encountered in mexCallMATLAB. ** The MEX API now includes the function mexCallMATLABWithTrap. This function will not abort if an error occurs during mexCallMATLAB, but instead will return execution to the MEX function for error handling. ** The MEX API functions for input validation that begin with "mxIs" (e.g., mxIsDouble, mxIsEmpty, etc.) now return type bool rather than type int. ** The functions mxAssert and mxAssertS for checking assertions have been added. In order to avoid a performance penalty they are only compiled in to debug versions of a MEX file, i.e., that are produced when the '-g' option is given to mex or mkoctfile. ** Other new MEX API functions include mexEvalStringWithTrap, mxIsScalar, mxCreateUninitNumericArray, mxCreateUninitNumericMatrix. ** Other new functions added in 4.2: audioformats camlight condeig deg2rad dialog evalc hash im2double isocaps lighting localfunctions material normest1 ode23 ode45 odeget odeplot odeset padecoef profexport psi rad2deg reducepatch reducevolume smooth3 uibuttongroup ** Deprecated functions. The following functions have been deprecated in Octave 4.2 and will be removed from Octave 4.6 (or whatever version is the second major release after 4.2): Function | Replacement ---------------------|------------------ bitmax | flintmax mahalanobis | mahal in Octave-Forge statistics pkg md5sum | hash octve_config_info | __octave_config_info__ onenormest | normest1 sleep | pause usleep | pause wavread | audioread wavwrite | audiowrite ** The following functions were deprecated in Octave 3.8 and have been removed from Octave 4.2. default_save_options java_new gen_doc_cache java_unsigned_conversion interp1q javafields isequalwithequalnans javamethods java_convert_matrix re_read_readline_init_file java_debug read_readline_init_file java_invoke saving_history ** The global error_state variable in Octave's C++ API has been deprecated and will be removed in a future version. Now the error and print_usage functions throw an exception (octave::execution_exception) after displaying the error message. This makes the error and print_usage functions in C++ work more like the corresponding functions in the scripting language. ** The default error handlers in liboctave have been updated to use exceptions. After displaying an error message they no longer return control to the calling program. The error handler function can be customized through the global variables "current_liboctave_error_handler" and "current_liboctave_error_with_id_handler". If a programmer has installed their own custom error handling routines when directly linking with liboctave then these must be updated to throw an exception and not return to the calling program. ** The system for common errors and warnings has been renamed from gripe_XXX to either err_XXX if error is called or warn_XXX if warning is called. The gripe_XXX functions are deprecated and will be removed in version 4.6. ** New configure option, --enable-address-sanitizer-flags, to build Octave with memory allocator checks (similar to those in valgrind) built in.
2016-11-19octave: reference llvm & octave bug reports for ambiguous floatmaya2-3/+6
precision patch.
2016-11-17Update to 1.999800wen2-7/+7
Upstream changes: 2016-11-04 v1.999727 pjacklam * Skip test exceeding the range of VAX floating point number in t/bigintpm.inc (CPAN RT 118468). * Fix typo in lib/Math/BigInt.pm (CPAN RT 118550). 2016-11-15 v1.999800 pjacklam * Upgrade bundled Module::Install from version 1.16 to version 1.17. * Add Math::BigInt::Lib (lib/Math/BigInt/Lib.pm), a parent class for Math::BigInt backend libraries. * Use objects in Math::BigInt::Calc, not just array refs. Also use OO-style, i.e., use $class->_add($x, $y) rather than _add($class, $x, $y). * Not all library methods modify the invocand, so call library methods as, e.g, $x = $LIB->method($x, $y) rather than just $LIB->method($x, $y). * Math::BigInt::Calc is now a subclass of Math::BigInt::Lib. * Add Math::BigInt::Lib::Minimal (t/Math/BigInt/Lib/Minimal.pm) for testing inheritance from Math::BigInt::Lib. * Minor simplification in Math::BigInt::Calc->_str(). * Speed up Math::BigInt::Calc->_root(). * Remove test files that were included in the previous release by accident. * Add more tests and use more verbose output in some tests. * Fix typo in lib/Math/BigFloat.pm * Fix documentation error in lib/Math/Calc.pm * Use Config::Tiny and an .ini file to handle the library specific configuration for the author-lib*.t test files.