The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Array of arrays of various sizes and compile
Replies: 5   Last Post: Jan 21, 2011 4:28 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 26
Registered: 9/18/07
Array of arrays of various sizes and compile
Posted: Jan 18, 2011 5:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Is it possible to include such a variable in a compiled function?

{ {1}, {2,3}, {1}, {5,7,8} }

I am getting an error with such input.




Works ok.

But for the following:

During evaluation of In[338]:= CompiledFunction::cfta: Argument {{1},
{2,1}} at position 1 should be a rank 2 tensor of machine-size
integers. >>
Out[340]= 4

Any suggestions?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.