Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > MathLink C Language Functions >
MathLink C Function

MLPutReal128List()

int MLPutReal128List(MLINK link, mlextended_double *a, int n)
puts a list of n extended-precision floating-point numbers starting from location a to the MathLink connection specified by link.
  • MLPutReal128List() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLPutReal128List() fails.
  • MLPutReal128List() is declared in the MathLink header file mathlink.h.
#include "mathlink.h"

/* send a list of extended-precision floating-point numbers to a link */

void f(MLINK lp)
{
    mlextended_double list[20];
    int i;

    for(i = 0; i < 20; i++)
        list[i] = i + .9;

    if(! MLPutReal128List(lp, (mlextended_double *)list, 20))
        { /* unable to put the list to lp */ }
}
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team