C++ PLS using the Eigen library: The algorithm was described by Hervé Abdi. The Python implementation was done by Avinash Kak python implementation. A C++ implementation has already been performed using the cv2 matrix implementation.
This implementation uses the Eigen matrix library, which can theoretically be used for Arduino/ESP32 devices that already have the Eigen library. However, this code is not yet optimized for these devices.