Re: Compile message suppression
- To: mathgroup at smc.vnet.net
- Subject: [mg39466] Re: Compile message suppression
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Mon, 17 Feb 2003 04:34:34 -0500 (EST)
- Organization: The University of Western Australia
- References: <b2599j$hqu$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <b2599j$hqu$1 at smc.vnet.net>, "Y.A.Tesiram" <yas at pcomm.hfi.unimelb.edu.au> wrote: > I have a function defined as > > f = Compile[{{arg1, _Real, 2}, {arg2, _Real}, {arg3, _Real}, Module[ {}, > expr]] > > and I want to use a a non-Real assignment to arg2 called x, Mathematica > correctly returns a warning message saying that assignment x should be a > real, but it still returns the correct symbolic expression for f. How do I > turn the message off or better still how can I handle this sort of > assignment a little more thoroughly inside Compile? Use _Complex instead of _Real for arg2? Cheers, Paul