MLPutInteger64Array (C 函数)
MLPutInteger64Array 已经被 WSPutInteger64Array 所取代.
更多信息

- 数组 a 在内存中的布局必须像一个被明确声明为 mlint64 a[m][n]…的 C 数组.
- 如果 heads 为 NULL,那么数组将被假设为在每层中具有标头 List.
- 在 i 层的数组长度为
.
- MLPutInteger64Array() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLPutInteger64Array() 失败,则使用 MLError() 检索错误代码.
- MLPutInteger64Array() 在 MathLink 标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* send an array of 64-bit numbers to a link */
void f(MLINK lp)
{
mlint64 array[2][10][2][5];
int dims[4];
int i;
for(i = 0; i < 200; i++)
{
*((mlint64 *)array + i) = i;
}
dims[0] = 2;
dims[1] = 10;
dims[2] = 2;
dims[3] = 5;
if(! MLPutInteger64Array(lp, (mlint64 *)array, (int *)dims, (char **)0, 4))
{ /* unable to send the array to lp */ }
}