MathGroup Archive 2009

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

Search the Archive

Can't apply Differences[] to a SparseArray[]?

Mathematica newbie here.

I'd like to apply the Differences[] function to a sparse array.  Other
list operations appear to work, but I'm seeing this:

    s = SparseArray[{5, 6, 7} -> {10, 11, 12}]


        Differences::list: List expected at position 1 in Differences

What is special about Differences?  I don't want to convert the sparse
array to a regular list; my data set could have thousands or millions
of missing elements.


  • Prev by Date: Re: Re: New Wolfram Tutorial Collection documentation is
  • Next by Date: Re: How to select several cells
  • Previous by thread: Re: Inverse function
  • Next by thread: Re: Can't apply Differences[] to a SparseArray[]?