|
SOLUTIONS
|
MATHEMATICA MATHLINK C 函数
MLPutInteger64List()
更多信息更多信息
- MLPutInteger64List() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLPutInteger64List() 失败,则使用 MLError() 检索错误代码.
- MLPutInteger64List() 在 MathLink 标头文件 mathlink.h 中被声明.
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (1)
#include "mathlink.h"
/* send a one-dimensional list of 64-bit integers to a link */
void f(MLINK lp)
{
mlint64 list[10], i;
for(i = 0; i < 10; i++)
#if ML64BIT_MATHLINK
list[i] = i;
#else
list[i].hi = 0;
list[i].low = i;
#endif
if(! MLPutInteger64List(lp, (mlint64 *)list, 10))
{ /* unable to send the list to lp */ }
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
