Fast Vectorize Operator

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

#1 Posted: 7 years ago
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 113 time(s).
WL To Q_Vectorize.sm (28 KiB) downloaded 111 time(s).
1.July WL&RT.xlsx (29 KiB) downloaded 126 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: 7 years ago
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,004 likes in 1,677 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 7 years ago
#3 Posted: 7 years ago
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: 7 years ago
Jean Giraud

Jean Giraud

983 likes in 6,866 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 121 time(s).
#5 Posted: 7 years ago
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