Re: [Numpy-discussion] Behavior of np.random.multivariate_normal with bad covariance matrices

2015-04-08 Thread Blake Griffith
ther options on the check_valid keyword arg will be ignore, and raise. What should happen when "fix" is passed for check_valid? Set negative eigenvalues to 0 and symmetrize the matrix? On Mon, Mar 30, 2015 at 8:34 AM, wrote: > On Sun, Mar 29, 2015 at 7:39 PM, Blake Griffith > wrote: >

[Numpy-discussion] Behavior of np.random.multivariate_normal with bad covariance matrices

2015-03-29 Thread Blake Griffith
I have an open PR which lets users control the checks on the input covariance matrix. The matrix is required to be symmetric and positve semi-definite (PSD). The current behavior is that NumPy raises a warning if the matrix is not PSD, and does not even check for symmetry. I added a symmetry check

Re: [Numpy-discussion] PEP8

2013-09-09 Thread Blake Griffith
I think a good solution would to use add a git_hooks directory with a pre-commit git hook along with an git hook installation script. And a note should be added to DEV_README.txt suggesting installing the git hooks for pep8 compatibility. I personally use this as a pre-commit #!/bin/sh FILES=$(gi

Re: [Numpy-discussion] Upcoming 1.8 release.

2013-08-15 Thread Blake Griffith
> On Thu, Aug 15, 2013 at 10:48 AM, Blake Griffith < > blake.a.griff...@gmail.com> wrote: > >> I would like to have the ufunc overrides in 1.8 if it is possible. >> >> >> On Thu, Aug 15, 2013 at 9:21 AM, Charles R Harris < >> charlesr.har...@gmail.com

Re: [Numpy-discussion] Upcoming 1.8 release.

2013-08-15 Thread Blake Griffith
I would like to have the ufunc overrides in 1.8 if it is possible. On Thu, Aug 15, 2013 at 9:21 AM, Charles R Harris wrote: > I don't see any that *have* to go in, but there are a few that could be > included. The most significant is probably the inplace fancy indexing if it > is ready. The nan

[Numpy-discussion] ufunc overrides

2013-07-10 Thread Blake Griffith
Hello NumPy, Part of my GSoC is compatibility with SciPy's sparse matrices and NumPy's ufuncs. Currently there is no feasible way to do this without changing ufuncs a bit. I've been considering a mechanism to override ufuncs based on checking the ufuncs arguments for a __ufunc_override__ attribut

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-05-01 Thread Blake Griffith
interested in the initially non zero elements should probably do something like: sparse.data = np.cos(sparse.data) On Wed, May 1, 2013 at 1:32 PM, Daπid wrote: > On 1 May 2013 20:12, Blake Griffith wrote: > > However, it would still be useful to have ufuncs working well with the &

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-05-01 Thread Blake Griffith
Oh wow, I just assumed that `dot` was a ufunc... However, it would still be useful to have ufuncs working well with the sparse package. I don't understand everything that is going on in https://github.com/numpy/numpy/blob/master/numpy/core/src/umath/ufunc_object.c But I assumed that I would be abl

[Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Blake Griffith
Hello, I'm writing a GSoC proposal, mostly concerning SciPy, but it involves a few changes to NumPy. The proposal is titled: Improvements to the sparse package of Scipy: support for bool dtype and better interaction with NumPy and can be found on my GitHub: https://github.com/cowlicks/GSoC-proposal