transform不止用于迭代器 accumulate是求和
LOG(ERROR) <<"hello";
std::cout << "Hello, World!" << std::endl;
float a[2][2] = {{1,2}, {3,4}};
float b[3] = {1,2,3};
std::transform(b, b + 3, b,[](float c){return c + 1;});
return 0;
transform不止用于迭代器 accumulate是求和
LOG(ERROR) <<"hello";
std::cout << "Hello, World!" << std::endl;
float a[2][2] = {{1,2}, {3,4}};
float b[3] = {1,2,3};
std::transform(b, b + 3, b,[](float c){return c + 1;});
return 0;