C or C++ package like NumPy?

Does anyone know of a C or C++ library that's similar to NumPy? Seems like all the big C++ efforts are focused on linear algebra rather than general purpose multidimensional arrays. I've written a multidimensional array class in the D programming language with an API modeled loosely after NumPy's. It works ok but there are a lot of differences between a statically typed language like C++ or D and a dynamic one like Python. So I was looking around for API inspiration from other C/C++ libraries. But the projects I know about are all focused on linear algebra (like ublas and MTL) and don't support general N-dimensional arrays. Thanks for your comments. --bb

http://www.oonumerics.org/blitz/ On Fri, 2 Nov 2007, Bill Baxter wrote:
Does anyone know of a C or C++ library that's similar to NumPy? Seems like all the big C++ efforts are focused on linear algebra rather than general purpose multidimensional arrays.
I've written a multidimensional array class in the D programming language with an API modeled loosely after NumPy's. It works ok but there are a lot of differences between a statically typed language like C++ or D and a dynamic one like Python. So I was looking around for API inspiration from other C/C++ libraries. But the projects I know about are all focused on linear algebra (like ublas and MTL) and don't support general N-dimensional arrays.
Thanks for your comments. --bb _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Ah, ok. Thanks. That does look like a good example. I've heard of it, but never looked too closely for some reason. I guess I always thought of it as the library that pioneered expression templates but that no one actually uses. --bb On Nov 2, 2007 9:06 AM, Warren Focke <focke@slac.stanford.edu> wrote:
http://www.oonumerics.org/blitz/
On Fri, 2 Nov 2007, Bill Baxter wrote:
Does anyone know of a C or C++ library that's similar to NumPy? Seems like all the big C++ efforts are focused on linear algebra rather than general purpose multidimensional arrays.
I've written a multidimensional array class in the D programming language with an API modeled loosely after NumPy's. It works ok but there are a lot of differences between a statically typed language like C++ or D and a dynamic one like Python. So I was looking around for API inspiration from other C/C++ libraries. But the projects I know about are all focused on linear algebra (like ublas and MTL) and don't support general N-dimensional arrays.
Thanks for your comments. --bb _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On 11/1/07, Bill Baxter <wbaxter@gmail.com> wrote:
Ah, ok. Thanks. That does look like a good example. I've heard of it, but never looked too closely for some reason. I guess I always thought of it as the library that pioneered expression templates but that no one actually uses.
I believe it is no longer maintained. I might be wrong about that, though. Chuck

It is not although it is used in scipy (without everything to use it with Visual Studio) You can look at Vigra (but I don't know if there is linear algebra, but there are views, multidimensional containers, ...). Matthieu 2007/11/2, Charles R Harris <charlesr.harris@gmail.com>:
On 11/1/07, Bill Baxter <wbaxter@gmail.com> wrote:
Ah, ok. Thanks. That does look like a good example. I've heard of it, but never looked too closely for some reason. I guess I always thought of it as the library that pioneered expression templates but that no one actually uses.
I believe it is no longer maintained. I might be wrong about that, though.
Chuck
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92

Sorry : http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/ It has some publications written about the design it uses (iterators and such), really well done. Matthieu 2007/11/2, Bill Baxter <wbaxter@gmail.com>:
On Nov 2, 2007 3:50 PM, Matthieu Brucher <matthieu.brucher@gmail.com> wrote:
You can look at Vigra (but I don't know if there is linear algebra, but there are views, multidimensional containers, ...).
Thanks for the link. Hadn't heard of that one.
--bb _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92

Oh, I didn't realize you didn't give a link. I just googled reflexively. Anyway, that makes me think of the other generic image library I've heard of -- Adobe's GIL. Never really looked at it in much detail but checking now, it looks like it does support N-dim images. http://opensource.adobe.com/gil/html/gildesignguide.html#ImageSectionDG --bb On Nov 2, 2007 4:00 PM, Matthieu Brucher <matthieu.brucher@gmail.com> wrote:
Sorry : http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/ It has some publications written about the design it uses (iterators and such), really well done.
Matthieu
2007/11/2, Bill Baxter <wbaxter@gmail.com>:
On Nov 2, 2007 3:50 PM, Matthieu Brucher <matthieu.brucher@gmail.com>
wrote:
You can look at Vigra (but I don't know if there is linear algebra, but there are views, multidimensional containers, ...).
Thanks for the link. Hadn't heard of that one.
--bb
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Charles R Harris wrote:
On 11/1/07, Bill Baxter <wbaxter@gmail.com> wrote:
Ah, ok. Thanks. That does look like a good example. I've heard of it, but never looked too closely for some reason. I guess I always thought of it as the library that pioneered expression templates but that no one actually uses.
I believe it is no longer maintained. I might be wrong about that, though.
Chuck
It is being maintained, at least to some extent. See: blitz-support@lists.sourceforge.net

Hi,
Does anyone know of a C or C++ library that's similar to NumPy? Seems like all the big C++ efforts are focused on linear algebra rather than general purpose multidimensional arrays.
I've written a multidimensional array class in the D programming language with an API modeled loosely after NumPy's. It works ok but there are a lot of differences between a statically typed language like C++ or D and a dynamic one like Python. So I was looking around for API inspiration from other C/C++ libraries. But the projects I know about are all focused on linear algebra (like ublas and MTL) and don't support general N-dimensional arrays.
Maybe Boost.MultiArray could also be considered. http://www.boost.org/libs/multi_array/doc/user.html Cheers, Sebastien. -- ################################### # Dr. Sebastien Binet # # Lawrence Berkeley National Lab. # # 1 Cyclotron Road # # Berkeley, CA 94720 # ###################################
participants (6)
-
Bill Baxter
-
Charles R Harris
-
Matthieu Brucher
-
Neal Becker
-
Sebastien Binet
-
Warren Focke