Le lundi 14 mai 2012 à 10:08 -0700, Vinzent Steinberg a écrit :

> 
> I think we should keep the interfaces different. You have addition and
> multiplication with scalars for a vector/matrix, but in general not
> for a tuple. Also, you have for example transposition, which does not
> make sense for tuples.
> 
> 
> Maybe the implementations should share more code in order to be less
> redundant though. I agree with Aaron, it might make sense for
> ImmutableMatrix to subclass Tuple.
> 
I disagree. An ImmutableMatrix is clearly not Liskov-substitutable for a
Tuple. For Tuples, "+" means concatenation, not addition, and matrices
are 2-D while tuples are 1-D, so indexing works differently.


-- 
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.

Reply via email to