Vectors and matrices in Mathematica are simply represented by lists and by lists of lists, respectively. The representation of vectors and matrices by lists. This is a 2×2 ...
int MLPutType (MLINK link, int type) prepares link to put an object of the specified type.
MLMessageHandlerObject MLGetMessageHandler (MLINK link) returns the message handler function installed for the MLINK object link.
int MLTransferExpression (MLINK dst, MLINK src) transfers an expression to destination link dst from source link src.
int MLPutIntegerList (MLINK link, int *a, long n) puts a list of n integers starting from location a to the MathLink connection specified by link.
int MLPutInteger (MLINK link, int i) puts the integer i to the MathLink connection specified by link.
int MLGetDouble (MLINK link, double *x) gets a floating-point number from the MathLink connection specified by link and stores it as C type double in x.
int MLGetArgCount (MLINK link, int *n) finds the number of arguments to a function on link and stores the result in n.
int MLTestHead (MLINK link, const char *head, int *n) tests that the next object to be read from link is an expression with head head, and stores the number of arguments of ...
int MLAllocParameter (MLParameters *p, MLAllocator * a, MLDeallocator * d) retrieves the current memory allocator and deallocator function pointers from the MLParameters ...