mathlink
Mathlink and delayed evaluation/variables
I have a scalar function written in Fortran that I\'m using in Mathematica via a small mathlink module. I want this function to behave as close to a native Mathematica function as possible, including[详细]
2023-03-24 16:53 分类:问答Mathematica: MathLink error messages
I think I am starting to understand how to link functions written in C/C++ to Mathematica. The problem I\'m facing is that I don\'t know how to send error messages from my C wrapper to Mathematica. Af[详细]
2023-03-16 13:10 分类:问答Setting ComplexType in MathLink
I have another one. I tried to use ml.ComplexType = System.Type.GetType(\"Complex\"); in C# with the Mathematica MathLink, but when I tried to read the numbers with GetComplexArray, it threw an except[详细]
2023-03-03 12:48 分类:问答How to put options into functions in MathLink
This is sort of related to my earlier question, but different. I can\'t figure out how to give MathLink function options without using Evaluate(), etc. For example, I have the following C# code:[详细]
2023-03-02 15:35 分类:问答CheckAbort inside MathLink functions?
I just found that such MathLink functions as LinkWrite and LinkRead have something like its own internal CheckAbort that absorbs any aborts, and does not propagate them further.[详细]
2023-02-24 19:41 分类:问答How to kill slave kernel securely?
LinkClose[link] \"does not necessarily terminate the program at the other end of the connection\" as it is said in the Documentation. Is there a way to kill the[详细]
2023-02-15 16:40 分类:问答Compiling Pythonika on MacOS
I\'m compiling Pythonika on Snow Leopard and the errors I get suggest that I\'m missing some standard flag, any idea what\'s missing? Another post suggests I need -lrt flag, but that\'s not available[详细]
2023-02-14 18:00 分类:问答Changing behavior of General::stop and the main loop
On the Documentation page for General::stop we read: This message is generated after the indicated message has been generated[详细]
2023-02-14 02:01 分类:问答Chain of packets in MathLink: are the packets always strictly ordered?
The Documentation does not state clear the order of packets returned by slave kernel via MathLink. It is natural to suppose that (when[详细]
2023-02-12 04:14 分类:问答How to make an analog of InString[]?
I have discovered that InString[] does not work in MathLink mode when sending input with EnterExpressionPacket header. So I need to define my own function that returns previous input line. One way I h[详细]
2023-02-11 00:32 分类:问答