! * Whenever possible, make use of the Eigen methods for maximum efficiency * and readability. */
| 63 | * and readability. |
| 64 | */ |
| 65 | void runEigenFunction(GridMap& map, const string& layer_from, const string& layer_to) |
| 66 | { |
| 67 | map[layer_to] = map[layer_to].cwiseMax(map[layer_from]); |
| 68 | } |
| 69 | |
| 70 | /*! |
| 71 | * For comparison. |