Re: [Numpy-discussion] loop vectorization

2011-03-11 Thread Josh Hykes
> > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > -- Josh Hykes NCSU grad student (717) 742-0264 jmhy...@ncsu.edu or jhy...@gmail.com ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Is there a memory-efficient alternative to choose?

2011-03-09 Thread Josh Hykes
erties_map, state_variables, axes=([3,],[2])) This may not be possible without using f2py or Cython. I just figured I'd ask the experts before going that route. Thanks again. -Josh On Tue, Mar 8, 2011 at 4:53 PM, Lutz Maibaum wrote: > On Mar 8, 2011, at 11:56 AM, Josh Hykes wrote: >

[Numpy-discussion] Is there a memory-efficient alternative to choose?

2011-03-08 Thread Josh Hykes
Hello, I am writing a small PDE code in Python using a Cartesian mesh. Each mesh cell is one of a few materials, with associated properties. I store these properties in a dictionary and have a "mesh map" that tells me which material is in each cell. At some point in my code, I need to do a cell-w