MathGroup Archive 2006

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

Search the Archive

how to sort integers and sparsearrays ?


I have a list of a form

list = {k, {SparseArray[],SparseArray[], {A,SparseArray[]}}}

A is integer, k is list

What to do to convert it to


The length of list is unknown. We don't know where A appears. We only
know that it is integer and forms a list {A, SparseArray[]}.

I can't just use


because this pattern will not suit nither to e.g

list2=  {{0,3}},


list3=  {{0,3}},

where there is no A at all.



  • Prev by Date: Histogram3D
  • Next by Date: System of Linear Equations
  • Previous by thread: Re: Re: Histogram3D
  • Next by thread: Re: how to sort integers and sparsearrays ?