hsf-training / cpluspluscourse

C++ Course Taught at CERN, from Sebastien Ponce (LHCb)
Apache License 2.0
169 stars 65 forks source link

Consider a section math/science/linear algebra utilities #345

Open bernhardmgruber opened 1 year ago

bernhardmgruber commented 1 year ago

There are a few mathematical utilities in C++ and a lot is upcoming.

We have the standard math functions (e.g. sin etc), and the special math functions (#344). There is std::complex (#343). We also don't mention the C++20 <numbers> header, which finally contains std::numbers::pi :)

C++23 has std::mdspan as MD array abstraction (e.g. for matrices and tensors). Built on this, we will get a standard interface for linear algebra (based on BLAS using std::mdspan) in C++26. std::mdarray and std::submdspan may also come in C++26.

This may deserve a small section of its own at some point.

stale[bot] commented 7 months ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. Please manually close it, if it is no longer relevant, or ask for help or support to help getting it unstuck. Let me bring this to the attention of @klieret @wdconinc @michmx for now.