[Numpy-discussion] using numpy array data in C++ matrix template library (MTL) matrices

2009-04-07 Thread JJ
Hello: I would like to make a numpy array accessible in C++ as a matrix template library (MTL) matrix object. Has anyone done this before? I see that there is a project numpy_boost that will make numpy arrays accessible as boost::multi_array objects. Any ideas on how I might do this, or even

[Numpy-discussion] numpy int64 arrays and ctypes

2009-03-26 Thread JJ
Hello: I hope someone can give me a tip on how to solve this simple problem. I use Ubuntu 8.10 64 bit and want to pass a numpy integer array to a shared library C program. For some reason, my C program is not able to read the info passed in the integer array, but can read from a passed double a

[Numpy-discussion] random number generator--problems?

2009-03-13 Thread JJ
Hello: I just ran across this article saying that the random number generator in Linux is broken. http://www-cdf.fnal.gov/publications/cdf6850_badrand.pdf The article starts: <> As I understand it, Numpy uses a different random number generator (Mersenne Twister), but I just wanted to verif

[Numpy-discussion] changing display options for dtype info for record arrays

2008-02-16 Thread JJ
Hello: I am starting to use record arrays and would like to know how to keep numpy from displaying the dtype info. For example, I can make a record array containing a long tuple: mydescriptor = dtype([('first', 'f4'),('second', 'f4'), ('third', [(str(x),'http://www.yahoo.com/r/hs