New answers tagged

2 votes

Matrix Class Implementation

I’m not going to do a full review, because the reviews you already have are excellent. I’ll just a few extra notes since you mentioned you are interested in next-gen, C++23-and-beyond best practices. ...
indi's user avatar
  • 10.3k
2 votes

Matrix Class Implementation

Overview If your Matrix sizes are always known at compile time then you could potentially have written them to do compile time checking of dimensions. Of course if you use any dynamic input this ...
Martin York's user avatar
  • 94.3k
6 votes

Matrix Class Implementation

Use std::mdspan Since you tagged the post c++23, consider using std::mdspan in your code. Not only can you use that internally ...
G. Sliepen's user avatar
  • 50.6k
7 votes

Matrix Class Implementation

Missing all includes and the C++ version, so I had to make some guesses to get this to compile. assert(rows >= 0); assert(cols >= 0); OK, but ...
harold's user avatar
  • 9,129

Top 50 recent answers are included