MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Simplify doesn't simplify SparseArrays

  • To: mathgroup at
  • Subject: [mg49479] Simplify doesn't simplify SparseArrays
  • From: semorrison_ at (Scott Morrison)
  • Date: Wed, 21 Jul 2004 06:40:29 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

For example, I was expecting


to return the same as


but it doesn't. Any suggestions for a modification? I was thinking of
unprotecting SparseArray, and defining

SparseArray /: Simplify[sa_SparseArray] :=

Should this work? Would it be better for this definition to go with
Simplify rather than SparseArray?

Thanks, Scott Morrison

  • Prev by Date: Re: Diophantic Equations with Constraints
  • Next by Date: Re: Diophantic Equations with Constraints
  • Previous by thread: RE: Applying my function to elements of a vector
  • Next by thread: Admin - Posts getting filtered