Thanks! But one more question, may I ask?

Why is ImmutableDenseNDimArray in tensor module NOT subclass of Expr, while 
ImmutableMatrix is subclass of Expr?

The docstring of Expr says that Expr needs arithmetic operations to be 
defined, but I can't see the difference between these two.


2019년 11월 30일 토요일 오전 6시 26분 27초 UTC+9, Aaron Meurer 님의 말:
>
> MutableMatrix doesn't subclass from Basic because Basic subclasses 
> have to be mutable. That's why there is an ImmutableMatrix class, 
> which does subclass from Basic. Matrix aliases MutableMatrix for 
> backwards compatibility. I'm not sure about Vector but I think it is 
> similar. 
>
> Aaron Meurer 
>
> On Fri, Nov 29, 2019 at 12:23 AM JS S <[email protected] <javascript:>> 
> wrote: 
> > 
> > I'm just being curious. 
> > Some classes in sympy, such as Matrix in matrices package or Vector in 
> physics.vector package, are not subclass of Basic. 
> > Is this intentional? 
> > 
> > -- 
> > 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/369cebed-3c6b-4e06-b729-858222baed5d%40googlegroups.com.
>  
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/024e8513-a33f-482a-a237-e451a309e513%40googlegroups.com.

Reply via email to