MathGroup Archive 2012

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

Search the Archive

Re: Replace, ReplaceAll and If time performace comparition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127256] Re: Replace, ReplaceAll and If time performace comparition
  • From: George Woodrow III <georgevw3 at mac.com>
  • Date: Wed, 11 Jul 2012 18:22:11 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <201206240826.EAA08423@smc.vnet.net>

There may be other choices, but you can get Xcode (free) from the App store. Once it is installed, Mathematica will use the XCode compiler.


george

On Jul 11, 2012, at 2:18 AM, Murta wrote:

> Hi Albert,
> I get this message when I tried to teste your suggestion when using " CompilationTarget -> "C" ":
> "A C compiler cannot be found on your system. Please consult the documentation to learn how to set up suitable compilers"
> 
> I'm using Max OS X 10.7.4
> Some clue?
> Tks in advance
> 
> On Thursday, June 28, 2012 5:04:00 AM UTC-3, awnl wrote:
>> Hi,
>> 
>> &gt; Can anyone top the result?
>> 
>> contradicting to my announcement, I tried anyway and found this to be 
>> considerably faster on my machine:
>> 
>> cf3 = Compile[{{list, _Integer, 1}},
>>  Map[If[# &gt; 0, #, 0] &amp;, list],
>>  CompilationTarget -&gt; &quot;C&quot;
>> ]
>> 
>> hth,
>> 
>> albert
> 




  • Prev by Date: Re: NonlinearModelFit to multiple data sets simultaneously?
  • Next by Date: Is there a way to stop the vertex labels from over-lapping?
  • Previous by thread: Re: Replace, ReplaceAll and If time performace comparition
  • Next by thread: Re: Replace, ReplaceAll and If time performace comparition