Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Fonction compile' topicStudent Support Forum > General > Archives > "Fonction compile"

Next Comment >Help | Reply To Topic
Author Comment/Response
RG
01/09/13 00:14am

Hi,

I want to use the Compile function to compile my code on C.

My function require a String data as an input.

example

f = Compile[{{x, _String}}, x^2, CompilationTarget :> "C"]

when I compile it, I have this error:

Compile::ctyp2: Invalid type or rank specification in {x,_String}.

does Compile accept the String type? I try again Blank, Symbol but no solution.

Please Help me.

URL: ,

Subject (listing for 'Fonction compile')
Author Date Posted
Fonction compile RG 01/09/13 00:14am
Re: Fonction compile Michael 01/11/13 9:20pm
Re: Fonction compile jf 01/12/13 6:03pm
Re: Fonction compile yehuda 01/13/13 2:26pm
Next Comment >Help | Reply To Topic