OpenersNotesSection(Spacer1)Details

The array a must be laid out in memory like a C array declared explicitly as (NonWLLink[mlextended_double, paclet:ref/c/mlextended_double]) a[m][n]….

If heads is given as NULL, the array will be assumed to have head List at every level.

The length of the array at level i is taken to be dims[i].

MLPutReal128Array() returns 0 in the event of an error, and a nonzero value otherwise.

Use (NonWLLink[MLError(), paclet:ref/c/MLError]) to retrieve the error code if MLPutReal128Array() fails.

MLPutReal128Array() is declared in the MathLink header file (RefLink[mathlink.h, paclet:ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "mathlink.h"

/* put an array of extended-precision floating-point numbers to a link */

void f(MLINK lp)
{
	mlextended_double array[2][10][2];
	int dims[3];
	int i;

	for(i = 0; i < 40; i++)
		*((mlextended_double *)array + i) = (mlextended_double)(i + .1);

	dims[0] = 2;
	dims[1] = 10;
	dims[2] = 2;

	if(! MLPutReal128Array(lp, (mlextended_double *)array, (int *)dims, (char **)0, 3))
		{ /* unable to send the array to lp */ }
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[MLPutReal32Array(), paclet:ref/c/MLPutReal32Array])  ▪  (NonWLLink[MLPutReal64Array(), paclet:ref/c/MLPutReal64Array])}})}})