MathGroup Archive 2007

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

Search the Archive

Re: sparsearray and its nonempty cells

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72723] Re: sparsearray and its nonempty cells
  • From: Arkadiusz.Majka at gmail.com
  • Date: Tue, 16 Jan 2007 03:47:45 -0500 (EST)
  • References: <eocro4$6p6$1@smc.vnet.net>

Hello Bill,


Hmmmm, look here (!!!):

In[5]:=
Mysparse=SparseArray[i_/;2<=i<=11\[RuleDelayed]0.8,20];
OrderedQ[Most[First/@ArrayRules[Mysparse]]]

Out[6]=
False

In[4]:=
$Version

Out[4]=
5.2 for Microsoft Windows (June 20, 2005)



I understand less and less ..... Why it depends on the OS?

Arek



Bill Rowe napisaÅ?(a):
> On 1/13/07 at 5:02 AM, Arkadiusz.Majka at gmail.com wrote:
>
> >Of course I can simply use Sort  but I would prefer to obtain
> >already sorted list directly from
>
> >Mysparse/. SparseArray[_, _, _, x_] :> x[[2, 2]]
>
> >or from ArrayRules[...].
>
> >BTW Most[First/@ArrayRules[Mysparse]] does not produce sorted list
>
> That isn't consistent with the results I get here, i.e.,
>
> In[5]:=
> Mysparse=SparseArray[i_/;2â?¤iâ?¤11\[RuleDelayed]0.8,20];
> OrderedQ[Most[First/@ArrayRules[Mysparse]]]
>
> Out[6]=
> True
>
> In[7]:=
> $Version
>
> Out[7]=
> 5.2 for Mac OS X (June 20, 2005)
> --
> To reply via email subtract one hundred and four


  • Prev by Date: Re: Re: Re: Re: Limit and Root Objects
  • Next by Date: Re: Trouble with reading from file
  • Previous by thread: Re: sparsearray and its nonempty cells
  • Next by thread: Re: [TS 34965]--Re:large input to NMinimize causes NMinimize:"bcons" along with Less:nord ... and I don't think it should