How to input Matrix as argument in XLL

Feb 2, 2014 at 2:34 PM
Hi, I would like to input a matrix as a argument in XLL. How should I write the data type? What is the Signature of the data type? I tried on the following code but it does not work.

Code:
__declspec(dllexport) double InputMatrix (double A[2][3])
{
   return A[1][2];
}

Signature in the header file: L"BB"
Coordinator
Feb 2, 2014 at 2:56 PM
This is a job for the FP data type: https://xll.codeplex.com/wikipage?title=FP&referringTitle=Documentation
You should declare functions called from Excel using WINAPI (aka __stdcall). See, e.g., https://xlllapack.codeplex.com/SourceControl/latest#trunk/potrf.cpp for how to call the LAPACK Cholesky decomposition.