IMathLinkGetDoubleArray Method

Reads a list as a one-dimensional array of doubles.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
double[] GetDoubleArray()

Return Value

Double

Remarks

The expression being read must be a list or other depth-1 expression of integers or reals. Values outside the range of a double are converted via casting.

The expression does not need to have head List. In other words, it could be Foo[1.0, 2.0]. The information about the head is lost; if you need this information you can either use GetArray(Type leafType, int depth, out string[] heads), or read the expression as an Expr and examine it using the Expr methods.

Exceptions

MathLinkExceptionIf the waiting data cannot be read in this format, or on any other MathLink error.

See Also