All entries for Monday 30 January 2006
January 30, 2006
Question time
Last time I used C++ was quite a while ago, and I need help. Serious help. I built a simple but wonderful program in MATLAB, but I'll need better performance soon, especially as I can't wait for more than 2 years to have it perform operations on arrays with more than 10,000 entries.
So I'm trying to rewrite it in C++, assuming that this more advanced language is more powerful. And forgetting that those lovely simple algorithms in MATLAB such as sortrows, and randn, and variable array sizes are more involved to implement in C++.
So here I am calling the Warwick blogosphere for help. I've got a 10,000×3 array [for instance] and want to sort the first column in ascending order. I'd also like to delete rows without having to rearrange the matrix each time [rows are deleted quite often] and add rows similarly. I'm tired of using Google and c++.com and what not, and the book I have is only introductory. If you can help me understand what to do, I… don't know what I'll do, but I'd extremely grateful to say the least!