williamstein / sage_modabvar

1 stars 2 forks source link

implemented newform_decomposition #34

Closed kevinywlui closed 8 years ago

kevinywlui commented 8 years ago

Sometimes we just want the newforms and calling decomposition() does too much work so I implemented newform_decomposition() which just returns the newforms. Up to a re-ordering, it is equivalent to [S.newform(names=names) for S in self.decomposition()] .

The performance is much better, especially in the J1 case.

williamstein commented 8 years ago

This looks good, and is a good idea.