Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

how to sort integers and sparsearrays ?

  • To: mathgroup at
  • Subject: [mg71954] how to sort integers and sparsearrays ?
  • From: Arkadiusz.Majka at
  • Date: Wed, 6 Dec 2006 06:03:32 -0500 (EST)


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 ?