Subject: CVS commit: pkgsrc/math/py-Numeric
To: None <pkgsrc-changes@netbsd.org>
From: Mark Davies <markd@netbsd.org>
List: pkgsrc-changes
Date: 10/30/2002 12:35:32
Module Name:	pkgsrc
Committed By:	markd
Date:		Wed Oct 30 10:35:32 UTC 2002

Modified Files:
	pkgsrc/math/py-Numeric: Makefile PLIST distinfo

Log Message:
Update py-Numeric to version 21.0

Fixed bugs:
    [ #482603 ] Memory leak in MA/Numeric/Python
                Reported by Reggie Dugard. Turned out to be
                *two* memory leaks in one case in a routine in Numeric,
                array_objectype. (Dubois)
    [ none    ] if vals was a null-array array([]) putmask and put would
                   crash.  Fixed with check.
    [ #469951 ] n = n1[0] gives array which shares dimension of n1 array.
                  This causes bugs if shape of n1 is changed (n didn't used
                  to have it's own dimensions array  (Travis Oliphant)
    [ #514588 ] MLab.cov(x,x) != MLab.cov(x) (Travis Oliphant)
    [ #518702 ] segfault when invalid typecode for asarray (Travis Oliphant)
    [ #497530 ] MA __getitem__ prevents 0 len arrays (Reggie Duggard)
    [ #508363 ] outerproduct of noncontiguous arrays (Martin Wiechert)
    [ #513010 ] memory leak in comparisons (Byran Nollett)
    [ #512223 ] Character typecode not defined (Jochen Kupper)
    [ #500784 ] MLab.py diff error (anonymous, fixed by Dubois)
    [ #503741 ] accuracy of MLab.std(x) (Katsunori Waragai)
    [ #507568 ] overlapping copy a[2:5] = a[3:6]
                Change uses of memcpy to memmove which allows overlaps.
    [ numpy-Patches-499722 ] size of buffer created from array is bad (Michel Sanner).
    [ #502186 ] a BUG in RandomArray.normal (introduced by last bug fix in 20.3)
               (Katsunori Waragai).

Fixed errors for Mac (Jack Jensen).

Make rpm's properly, better Windows installers. (Gerard Vermeulen)
    Added files setup.cfg; setup calculates rpm_install.sh to use current Python.
    New setup.py, eliminate setup_all.py. Use os.path.join everywhere. Revision
    in b6 added file README.RPM, further improvements.

Implement true division operations for Python 2.2. (Bruce Sherwood)
    Note: true division of all integer types results in an array of floats,
    not doubles. This decision is arbitrary and there are arguments either way,
    so users of this new feature should be aware that the decision may
    change in the future.

New functions in Numeric; they work on any sequence a that can be converted to a
Numeric array. Similar change to average in MA. (Dubois)

    def rank (a):
        "Get the rank of a (the number of dimensions, not a matrix rank)"

    def shape (a):
        "Get the shape of a"

    def size (a, axis=None):
        "Get the number of elements in a, or along a certain axis."

    def average (a, axis=0, weights=None, returned = 0):
        Computes average along indicated axis.


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 pkgsrc/math/py-Numeric/Makefile
cvs rdiff -r1.1 -r1.2 pkgsrc/math/py-Numeric/PLIST
cvs rdiff -r1.5 -r1.6 pkgsrc/math/py-Numeric/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.