Fast Vectorize Operator

Fast Vectorize Operator - Vectorize operator much faster than Array Index in Large Matrix Analysis - Messages

#1 Posted: 2/24/2018 4:28:28 AM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Examples compare speed of execution using Vectorize Operator vs Array Index in Large Matrix Analysis.

WL To Q_Array Index.sm (27 KiB) downloaded 69 time(s).
WL To Q_Vectorize.sm (28 KiB) downloaded 67 time(s).
1.July WL&RT.xlsx (29 KiB) downloaded 81 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
#2 Posted: 2/24/2018 6:44:14 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

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/help/matlab/matlab_prog/vectorization.html

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

Best regards

Alvaro.
1 users liked this post
frapuano 2/25/2018 6:02:00 AM
#3 Posted: 2/24/2018 11:01:55 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Hi Razonar

Thank you for the useful info.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#4 Posted: 2/25/2018 12:45:47 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Examples compare speed of execution using Vectorize Operator vs Array Index in Large Matrix Analysis.


Here attached a good demo.
VectorizTest.sm (22 KiB) downloaded 73 time(s).
#5 Posted: 2/25/2018 7:28:27 AM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Thank you Jean!
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
  • New Posts New Posts
  • No New Posts No New Posts