New answers tagged matrix
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.
...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
matrix × 685performance × 182
c++ × 173
python × 160
algorithm × 97
java × 94
c × 69
beginner × 45
numpy × 44
python-3.x × 38
programming-challenge × 37
matlab × 37
c# × 36
r × 35
array × 34
mathematics × 32
object-oriented × 23
interview-questions × 21
javascript × 20
c++11 × 17
recursion × 16
time-limit-exceeded × 16
image × 16
graph × 13
dynamic-programming × 13