MLPutInteger64 (C 関数)

MLPutInteger64WSPutInteger64に置き換えられた.

int MLPutInteger64(MLINK link,mlint64 i)

ネイティブの64ビットの整数ilink で指定されたMathLink接続に置く.

詳細

  • 任意精度の整数は,まず桁数のリストを与え,次にFromDigitsを使ってそのリストを数字に変換すれば,Mathematicaに送信することができる.
  • MLPutInteger64()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
  • MLError()を使うと,MLPutInteger64()が不成功の場合にエラーコードを引き出すことができる.
  • MLPutInteger64()は,MathLinkヘッダファイルmathlink.hの中で宣言される.

例題

  (1)

#include "mathlink.h"

/* send a 64-bit number to a link */

void f(MLINK lp)
{
    mlint64 a;

    a = 0x6553600065535;

    if(! MLPutInteger64(lp, a))
        { /* unable to send the 64 bit integer to lp */ }
}