Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10886 > unrolled thread

Re: Replace, ReplaceAll and If time performace comparition

Started byGeorge Woodrow III <georgevw3@mac.com>
First post2012-07-11 22:23 +0000
Last post2012-07-11 22:23 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Replace, ReplaceAll and If time performace comparition George Woodrow III <georgevw3@mac.com> - 2012-07-11 22:23 +0000

#10886 — Re: Replace, ReplaceAll and If time performace comparition

FromGeorge Woodrow III <georgevw3@mac.com>
Date2012-07-11 22:23 +0000
SubjectRe: Replace, ReplaceAll and If time performace comparition
Message-ID<jtkucq$11$1@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
> 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web