|
SOLUTIONS
|
MATHEMATICA MATHLINK C 関数
MLPutInteger64List()
詳細詳細
- MLPutInteger64List()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
- MLError()を使うと,MLPutInteger64List()が不成功の場合にエラーコードを引き出すことができる.
- 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 »
