[Numpy-discussion] Ensuring one can operate on array-like argument in place

2016-11-12 Thread Pavlyk, Oleksandr
Hi, In my Cython code a function processes it argument x as follows: x_arr = PyArray_CheckFromAny( x, NULL, 0, 0, cnp.NPY_ELEMENTSTRIDES | cnp.NPY_ENSUREARRAY | cnp.NPY_NOTSWAPPED, NULL) if x_arr is not x: in_place = 1 # a copy was made, so we can work in

Re: [Numpy-discussion] Intel random number package

2016-10-26 Thread Pavlyk, Oleksandr
Oct 26, 2016 at 4:30 PM, Pavlyk, Oleksandr <oleksandr.pav...@intel.com<mailto:oleksandr.pav...@intel.com>> wrote: The module under review, similarly to randomstate package, provides alternative basic pseudo-random number generators (BRNGs), like MT2203, MCG31, MRG32K3A, Wichma

Re: [Numpy-discussion] Intel random number package

2016-10-26 Thread Pavlyk, Oleksandr
Hi, Thanks a lot everybody for the feedback. The package can certainly be made a stand-alone drop-in replacement for np.random. There are many points raised and unraised in favor of this, and it is easy to accomplish. I will create a stand-alone package on github, but would still

Re: [Numpy-discussion] Using library-specific headers

2016-09-29 Thread Pavlyk, Oleksandr
--Original Message- From: NumPy-Discussion [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Julian Taylor Sent: Thursday, September 29, 2016 8:10 AM To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] Using library-specific headers On 09/27/2016 11:09 PM, Pavlyk, Oleksandr wrote: &

[Numpy-discussion] Using library-specific headers

2016-09-27 Thread Pavlyk, Oleksandr
Suppose I would like to take advantage of some functions from MKL in numpy C source code, which would require to use #include "mkl.h" Ideally this include line must not break the build of numpy when MKL is not present, so my initial approach was to use #if defined(SCIPY_MKL_H) #include

[Numpy-discussion] numpy.distutils issue

2016-08-24 Thread Pavlyk, Oleksandr
Hi All, According to the documentation page: http://docs.scipy.org/doc/numpy/reference/distutils.html Function add_library allows the following keywords: extra_f77_compiler_args extra_f90_compiler_args however setting them seem to have no effect for my extension. Digging deeper,

Re: [Numpy-discussion] Design feedback solicitation

2016-07-14 Thread Pavlyk, Oleksandr
On Fri, Jun 17, 2016 at 4:08 PM, Pavlyk, Oleksandr <oleksandr.pav...@intel.com<mailto:oleksandr.pav...@intel.com>> wrote: > > Hi, > > I am new to this list, so I will start with an introduction. My name is > Oleksandr Pavlyk. I now work at Intel Corp. on the

[Numpy-discussion] Design feedback solicitation

2016-06-17 Thread Pavlyk, Oleksandr
Hi, I am new to this list, so I will start with an introduction. My name is Oleksandr Pavlyk. I now work at Intel Corp. on the Intel Distribution for Python, and previously worked at Wolfram Research for 12 years. My latest project was to write a mirror to numpy.random, named