#include #include #include #include namespace La = Latan; int main(int argc, char* argv[]) { if (argc != 4) { std::cout << "Usage: " << argv[0] << " " << std::endl; return -1; } std::string inFileName = argv[1]; std::string outFileName = argv[2]; auto nSamples = La::strTo(argv[3]); La::DMatSample inputData(nSamples, 1, 1); La::DSample outputData(nSamples); inputData = La::Io::load(inFileName); FOR_STAT_ARRAY(inputData, s) { outputData[s] = inputData[s](0, 0); } La::Io::save(outputData, outFileName); }