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


Groups > comp.soft-sys.math.mathematica > #2929

Re: Error in Compile

From "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Error in Compile
Date 2011-06-04 10:20 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <isd0ss$1nn$1@smc.vnet.net> (permalink)

Show all headers | View raw


It compiles without a problem on my Mathematica 8/Win7-64. 

from the Compile doc page:

"Compile handles numerical functions, matrix operations, procedural programming constructs, list manipulation functions, and functional programming constructs, etc. " 

Does NMinimize belong to this list?


"Ordinary Mathematica code can be called from within compiled code. Results obtained from the Mathematica code are assumed to be approximate real numbers, unless specified otherwise by the third argument of Compile. " 

NMinimize doesn't return reals, but a list containing a number and a list with a rule.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Error in Compile "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-06-04 10:20 +0000

csiph-web