Sometimes your results will not be in ready-made vector or imtx form, and you'll need to use a different CXlOper method to populate xloResult.
The simplest method to use is CXlOper::FromDoubleArray(), to populate the xloResult, using an array of values or of pointers to rows/columns of values.
The various different versions of this method are listed below:
Create a one-column array and populate it with the supplied data points.
Create a two-dimensional array and populate it with the supplied continuous data array. The bByRows argument will decide whether rows (TRUE) or columns (FALSE) are kept together.
Create a two-dimensional array and populate it with the supplied data, which consists of an array of column or row pointers, depending on the value of bByRows.
A more complex way to populate an array result is by using CXlOper::AllocArray() to create the array, and then CXlOper::Cell() to populate each cell.
While this method involves more programming, it gives you full control over the output, and allows you to have mixed data types in the array.
See the CXlOper::AllocArray() example for an example of this technique.