.NET/Link API Version 1.7 USE FRAMES

IMathLink.Put Method (Array, String[])

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

[Visual Basic]
Sub Put( _
   ByVal obj As Array, _
   ByVal heads As String() _
)
[C#]
void Put(
   Array obj,
   string[] heads
);

Parameters

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

Exceptions

Exception Type Condition
MathLinkException On any MathLink error.

Example

int[,] a = {{1,2},{3,4}};
// The following are equivalent, sending to Mathematica 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"});

See Also

IMathLink Interface | Wolfram.NETLink Namespace | IMathLink.Put Overload List