Open onlytailei opened 4 years ago
https://github.com/HKUST-Aerial-Robotics/Btraj/blob/78156885dfab1c5dfeea96cf2ab7ecd772433381/third_party/fast_methods/gradientdescent/gradientdescent.hpp#L367
It seems that ndims_ here is 3. And d_ is declared with size of 2.
However, d_[2] is initialized and used in folliwing codes.
It works but is still very dangerous. Is this a typo?
https://github.com/HKUST-Aerial-Robotics/Btraj/blob/78156885dfab1c5dfeea96cf2ab7ecd772433381/third_party/fast_methods/gradientdescent/gradientdescent.hpp#L367
It seems that ndims_ here is 3. And d_ is declared with size of 2.
However, d_[2] is initialized and used in folliwing codes.
It works but is still very dangerous. Is this a typo?