All 1 entries tagged <em>Algorithms</em>https://blogs.warwick.ac.uk/tstein/tag/algorithms/?atom=atomWarwick Blogs, University of Warwick(C) 20212021-09-17T23:55:17ZQuestion time byhttps://blogs.warwick.ac.uk/tstein/entry/question_time/2006-02-20T01:04:59Z2006-01-30T15:57:25Z<p><strong>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.</strong></p>
<p>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 <span class="caps">MATLAB</span> such as sortrows, and randn, and variable array sizes are more involved to implement in C++.</p>
<p>So here I am calling the Warwick blogosphere for help. I've got a 10,000×3 array [<em>for instance</em>] 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 [<em>rows are deleted quite often</em>] 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!</p><p><strong>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.</strong></p>
<p>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 <span class="caps">MATLAB</span> such as sortrows, and randn, and variable array sizes are more involved to implement in C++.</p>
<p>So here I am calling the Warwick blogosphere for help. I've got a 10,000×3 array [<em>for instance</em>] 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 [<em>rows are deleted quite often</em>] 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!</p>