Timeline for Get position from one list and choose element of another list in Compile
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 13, 2016 at 21:38 | comment | added | jack cilba | @halirutan thanks I asked the question here: mathematica.stackexchange.com/questions/104004/… | |
Jan 13, 2016 at 17:16 | comment | added | halirutan |
This is called a ragged array and it cannot be used as natural inside Compile as you might think. There are ways to solve this, but that are advanced and you already need to be quite confident with Compile to use them. In general, just think of it as impossible to either give ragged arrays as input or return them.
|
|
Jan 13, 2016 at 17:12 | comment | added | jack cilba | and another problem: the elements of former list are not in same size. for example {{1},{1,3,4,2},{4,2}} | |
Jan 13, 2016 at 17:12 | comment | added | halirutan |
Ask it as new question and give your short algorithm without using Compile , so that people understand what you try to do.
|
|
Jan 13, 2016 at 17:08 | comment | added | jack cilba | I have another question but I don't know ask it as a new question or not, actually the list that I want to choose from it is a global variable. I try it to give the list to Compile (function) but it produce another problem, the function should be used in FixedPoint. but I don't know how to give 2 arguments function to FixedPoint. | |
Jan 13, 2016 at 15:55 | comment | added | xzczd♦ |
Actually if one insists on AppendTo then Map will fail, not sure about the exact reason though.
|
|
Jan 13, 2016 at 14:33 | vote | accept | jack cilba | ||
Jan 13, 2016 at 14:15 | history | answered | halirutan | CC BY-SA 3.0 |