Looks like a very active community here! For the time being, I just threw together a quick-n-dirty, not-very-general Numeric.py that just implements the few pieces I needed: http://svn.cs.brynmawr.edu/Calico/trunk/languages/Python/modules/ai/Numeric.py
In my code, all of my uses are either one dimensional vectors (represented by a Python array in Numeric.array.array) or a two dimensional matrix (represented as a list of Python arrays in Numeric.array.array). A full pure-python Numeric.array replacement would be a lot of work, I suspect. But it would be useful for many projects to fall back to. On a different point completely, sympy looks like it would be an excellent candidate to include in our educational system, http://calicoproject.org/ which includes IronPython, but that makes Python code callable from other languages (like Ruby, Scheme, Basic, Logo, etc). Thanks! -Doug On Saturday, February 16, 2013 2:55:04 PM UTC-5, Matthew wrote: > > You mean 'float64' and all that? > > I think that that's a completely separable decision from the container > class. I think the only decision that an NDArray class would have to make > is whether or not to insist on type homogeneity. Other than that it should > just hold things, grant convenient access, provide views, etc.... It > should probably also implement something like tensor.dot. I think that the > actual elementwise computation piece should be parametrized or rely on the > `__mul__` attribute of the elements. > > Perhaps I didn't understand your question. > > > On Sat, Feb 16, 2013 at 11:43 AM, Aaron Meurer <[email protected]<javascript:> > > wrote: > >> Would we also emulate the dtype API? >> >> Aaron Meurer >> >> On Feb 16, 2013, at 12:38 PM, Stefan Krastanov >> <[email protected] <javascript:>> wrote: >> >> > I mostly agree that some kind of ndarray object would be nice. A very >> > simple, non-symbolic (i.e. not subclass of Basic) one. It would be >> > even better if numpy agrees on some Abstract Base Class that we can >> > mimic. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sympy" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected] <javascript:>. >> > To post to this group, send email to [email protected]<javascript:> >> . >> > Visit this group at http://groups.google.com/group/sympy?hl=en. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] <javascript:> >> . >> Visit this group at http://groups.google.com/group/sympy?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
