Hi Mario, Thanks for asking me for my plans.
I am cc-ing the google group as there are a few others interested in implementing tensors as well and they might have done some work on it as well. I have an idea/prototype for an API here https://gist.github.com/4149252 It shows both the interface in `index_notation.py` and a nontrivial use in of it in `diracalgebra.py`. It is nontrivial because it mixes the classical use of this notation with the abuse of notation used in quantum field theory. I will not have the time to finish this before the New Year holidays. And I do not claim that my approach is the best, but for the moment I like it because it makes explicit the special place that the metric has (in order to have well defined index notation). Most of it uses the new rewrite rules framework (not in the nicest way). On 26 November 2012 13:10, mario pernici <[email protected]> wrote: > Hi Stefan, > I am starting to implement a tensor class, covering the same kind of cases > covered in test_tensor_can.py . > My plan is to make a WIP PR in two or three weeks, with something working > but probably cumbersome and slow, to be improved with > the help of the Sympy community contribution. > > If you come up with a (WIP) PR before mine, doing similar things, I will > be happy to contribute to yours instead. > > Mario -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
