OK, you probably know more than me. I just assumed that most of those libraries are then consumed from something like Python. If you want to develop high-performance libraries themselves, then C++ is probably the way to go. Unless you want to be on the cutting edge with something like Rust :).
A lot of ML and scientific computing libraries are in C++. Quite a few of the roles I have see want a solid understanding/experience with C++.