Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline RFreund  
#1 Posted : 19 November 2017 00:36:35(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
Are there other built-in functions for performing "table manipulations" to matrices? Meaning I would like to sort a matrix in ascending order based on a certain row's value, is this possible with a built-in function.

For example I have many pairs consisting of (value, description) and I want to organize them based on value.

Hopefully this is somewhat clear. I realize I could create a function to do this for me, but I thought maybe there was a built-in function.

Side question - Is it just me or does it seam like chrome, bing, etc. do a bad job of searching/indexing this forum?

Thanks!

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline RFreund  
#2 Posted : 19 November 2017 00:45:46(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
Ah, well the answer to my question is rsort and csort.

Is this documented somewhere?

Sorry/thanks
Offline mkraska  
#3 Posted : 19 November 2017 01:21:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: RFreund Go to Quoted Post
Ah, well the answer to my question is rsort and csort.

Is this documented somewhere?

Sorry/thanks


Interactive Handbook:

Contents> Mathematics> Vectors and Matrices> Searching and Sorting

Section matrix sorting.sm (38kb) downloaded 28 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#4 Posted : 19 November 2017 15:39:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: RFreund Go to Quoted Post
Ah, well the answer to my question is rsort and csort.

Is this documented somewhere?


csort is a universal algorithm [divide/conquer], built-in Smath.
Lot more matrix manipulation can be performed in Smath from user modules...
... lookup, truth table, rotation, nest/unest, list ...
Search this forum for "Calculation in Table", by "Jean Giraud"
in reply to Collab "Paulius" [~ 4 days ago].


Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.