#include "daal.h"
#include "service.h"
using namespace std;
using namespace daal;
using namespace daal::algorithms;
using namespace daal::algorithms::math;
string datasetName = "../data/batch/covcormoments_csr.csv";
int main(int argc, char *argv[])
{
checkArguments(argc, argv, 1, &datasetName);
CSRNumericTablePtr dataTable(createSparseTable<float>(datasetName));
tanh::Batch<float, tanh::fastCSR> tanh;
tanh.input.set(tanh::data, dataTable);
tanh.compute();
tanh::ResultPtr res = tanh.getResult();
printNumericTable(res->get(tanh::value), "Hyperbolic Tangent result (first 5 rows):", 5);
return 0;
}