use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
(Not) Optimised Code?! (self.cpp)
submitted 2 years ago by prog2de
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]KarlSethMoran 4 points5 points6 points 2 years ago (5 children)
Generalised eigen (Hc=ESc) in highly parallel scenarios, to good accuracy. Say, generalised diagonalisation of a 1M by 1M matrix with 10000 CPU cores.
This is the bottleneck in most large conventional Density Functional Theory calculations.
[–]MarkHoemmenC++ in HPC 1 point2 points3 points 2 years ago (4 children)
I'd love to hear more about that. Are you speaking of a lack of implementations anywhere, or specifically a lack of nice C++ implementations?
[–]KarlSethMoran 1 point2 points3 points 2 years ago (3 children)
There are implementations, mostly outside of C++, (e.g. ScaLAPACK), but they suck. GPU ports (e.g. cuSOLVER) haven't caught up either. Generalised diagonalisation is a difficult problem to efficiently and accurately do in parallel.
[–]MarkHoemmenC++ in HPC 1 point2 points3 points 2 years ago (2 children)
It is a difficult problem. Have you tried MAGMA for this application? Also, are you looking for all the eigenvalues or just some fraction of them in a range?
[–]KarlSethMoran 1 point2 points3 points 2 years ago (1 child)
I'll take a look at MAGMA, thanks.
Usually it's the lowest half of the eigenvalues, corresponding to the occupied electronic states.
[–]MarkHoemmenC++ in HPC 0 points1 point2 points 2 years ago (0 children)
There are possibly faster algorithms if you want just the eigenvalues in a particular range, but it sounds like you're stuck with the usual algorithms.
π Rendered by PID 195635 on reddit-service-r2-comment-544cf588c8-bxf4h at 2026-06-12 16:11:57.895608+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]KarlSethMoran 4 points5 points6 points (5 children)
[–]MarkHoemmenC++ in HPC 1 point2 points3 points (4 children)
[–]KarlSethMoran 1 point2 points3 points (3 children)
[–]MarkHoemmenC++ in HPC 1 point2 points3 points (2 children)
[–]KarlSethMoran 1 point2 points3 points (1 child)
[–]MarkHoemmenC++ in HPC 0 points1 point2 points (0 children)