Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.1K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Argument value loss using Listable C-Compiled Function

Posted 2 years ago
POSTED BY: Michael Haring
4 Replies
Posted 2 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi
POSTED BY: Neal Maroney
Posted 2 years ago

Thank you very much for your answer to my issue.

Unfortunately, there are some problems with your suggestion. First, the variable "varG" was meant to be a global variable accessed on rare occaisions of the execution in func and therefore needs to be accesed through the MainEvatuate[] function.

Second, changing the rank of the arguments is not an option for my calculations as i use the "listable" attribute to transfer non-tensor lists to the C library. (For example, the 5th argument would not be a tensor of depth 3, but a nested list of max depth 3.)

My best solution to the problem so far is to change the order of the arguments so that the higher depth elements (for listable mapping) are at the end of the argument chain.

POSTED BY: Michael Haring
POSTED BY: Neal Maroney
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard