IMathLinkPut(Array, String) Method
Sends an array object. Unlike Put(object), this method lets you specify the heads you want for each dimension.
Namespace: Wolfram.NETLinkAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
void Put(
Array obj,
string[] heads
)
Sub Put (
obj As Array,
heads As String()
)
void Put(
Array^ obj,
array<String^>^ heads
)
abstract Put :
obj : Array *
heads : string[] -> unit
Parameters
- obj Array
- The array object to send.
- heads String
- The heads in each dimension".
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"});