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 ndtma  
#1 Posted : 24 February 2018 10:28:28(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 127 time(s) in 82 post(s)
Examples compare speed of execution using Vectorize Operator vs Array Index in Large Matrix Analysis.

WL To Q_Array Index.sm (28kb) downloaded 24 time(s).
WL To Q_Vectorize.sm (29kb) downloaded 26 time(s).
1.July WL&RT.xlsx (30kb) downloaded 47 time(s).

WL To Q_Array Index.jpg
WL To Q_Vectorize.jpg
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka

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

Offline Razonar  
#2 Posted : 25 February 2018 00:44:14(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,359
Uruguay

Was thanked: 818 time(s) in 518 post(s)
Hi. This is the help page for matlab about what their call (in matlab slang) the "vectorization process", instead of the use of "scalar approach" which include for and while loops: https://la.mathworks.com..._prog/vectorization.html

So, scalar = for, while, slow, and vectorial = vectorize in smath, and fast.

Best regards

Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 25/02/2018(UTC)
Offline ndtma  
#3 Posted : 25 February 2018 05:01:55(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 127 time(s) in 82 post(s)
Hi Razonar

Thank you for the useful info.

Edited by user 25 February 2018 05:05:00(UTC)  | Reason: Not specified

Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
Offline Jean Giraud  
#4 Posted : 25 February 2018 06:45:47(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ndtma Go to Quoted Post
Examples compare speed of execution using Vectorize Operator vs Array Index in Large Matrix Analysis.

Here attached a good demo.
VectorizTest.sm (23kb) downloaded 38 time(s).
Offline ndtma  
#5 Posted : 25 February 2018 13:28:27(UTC)
ndtma


Rank: Advanced Member

Groups: Registered
Joined: 05/06/2014(UTC)
Posts: 348
Man
Sri Lanka
Location: Colombo

Was thanked: 127 time(s) in 82 post(s)
Thank you Jean!
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
Users browsing this topic
Guest
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.