Sort in C++ like in Matlab

One issue with sorting in c++ is that you don’t get the sorted indices.

http://www.alecjacobson.com/weblog/?p=1527

Has code ready for replicating this Matlab functionality. Check it out.

Lots of nice answers here as well : http://stackoverflow.com/questions/1577475/c-sorting-and-keeping-track-of-indexes

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: