I see ImmutableSparseMatrix is lacking some properties that ImmutableDenseMatrix has, like is_ZeroMatrix, ... and it's causing some problems in MatMul.
On Monday, December 2, 2019 at 10:59:08 AM UTC+9, JS S wrote: > > Sorry for duplicate question - my previous one didn't get any answer so I > cannot but ask again. > > Now, I know that Basic object must be immutable, and Expr object must be > able to be subject to arithmetic operation. > (As far as I know, that is why some classes, e.g. FiniteSet, is instance > of Basic but not Expr). > > But what confuses me is this: > > - ImmutableDenseMatrix is subclass of Expr > - ImmutableSparseMatrix is subclass of Basic, but not Expr. > - ImmutableDenseNDimArray is, unlike its Matrix counterpart, subclass of > Basic but not Expr. > > This is confusing for me: What makes the difference between these three? > -- 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 sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/1b08d177-240e-4b96-bbcb-ea8bbe51efa9%40googlegroups.com.