#include "daal.h"
#include "service.h"
using namespace std;
using namespace daal;
using namespace daal::algorithms;
string datasetFileName = "../data/batch/cholesky.csv";
int main(int argc, char *argv[])
{
checkArguments(argc, argv, 1, &datasetFileName);
FileDataSource<CSVFeatureManager> dataSource(datasetFileName, DataSource::doAllocateNumericTable,
DataSource::doDictionaryFromContext);
dataSource.loadDataBlock();
cholesky::Batch<> algorithm;
algorithm.input.set(cholesky::data, dataSource.getNumericTable());
algorithm.compute();
services::SharedPtr<cholesky::Result> res = algorithm.getResult();
printNumericTable(res->get(cholesky::choleskyFactor));
return 0;
}