IMathLinkPut(Array, String) Method

Sends an array object. Unlike Put(object), this method lets you specify the heads you want for each dimension.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
void Put(
	Array obj,
	string[] heads
)

Parameters

obj  Array
The array object to send.
heads  String
The heads in each dimension".

Example

C#
int[,] a = {{1,2},{3,4}};
// The following are equivalent, sending to the Wolfram Language the matrix: {{1,2},{3,4}}
ml.Put(a);
ml.Put(a, null);
ml.Put(a, new String[] {"List", "List"});
// The following sends the expression: foo[bar[{1,2],[3,4]]
ml.Put(a, new String[] {"foo", "bar"});

Exceptions

MathLinkExceptionOn any MathLink error.

See Also