Using vectorized calculations in Scilab to improve performances of interpreted enivronment (CROSBI ID 689007)
Prilog sa skupa u zborniku | izvorni znanstveni rad | međunarodna recenzija
Podaci o odgovornosti
Mikac, Matija ; Horvatić, Miroslav ; Mikac, Vladimir
engleski
Using vectorized calculations in Scilab to improve performances of interpreted enivronment
Free and open-source software for numerical computations, Scilab, can be used as a good alternative to commercial tools such as Matlab in an education environment. Other tools, some of them also being completely free, are available - for example GNU Octave. This paper focuses on Scilab due to our experience in providing it as a valid alternative to Matlab to our STEM students - most of our lab exercises (basic matrix calculus, simple data transfer simulation (bit channel simulation and similar), basic signal generation and processing) were solved in both Matlab and Scilab giving proper results in "real- time". Of course, due to the completely different nature of execution of programming languages included in those tools, slower execution and lower calculation performance is expected in Scilab (which is interpreted, in contrast to JIT compilation in Matlab). In this paper, possible improvement in Scilab execution performances is described, using so called vectorization approach. The paper includes some examples of both, the simple (slow) source code and the vectorization-based alternatives. Results showing the measured execution times are given, including the description of the measurement methodology. The results show that huge performance improvements can be achieved in some test cases. Of course, that may vary based on the problem being solved - it cannot be concluded that vectorization can be used on each and every problem - therefore, there will still be cases in which the performances will be impacted by the slow nature of interpretation- based execution. Some initial thoughts and measurements related to problem scalability and possible impact to the performance are also included prior to final conclusions.
Scilab, vectorization, performance, source code, execution
WOS:000558088802033
nije evidentirano
nije evidentirano
nije evidentirano
nije evidentirano
nije evidentirano
Podaci o prilogu
2127-2136.
2020.
objavljeno
10.21125/inted.2020.0664
Podaci o matičnoj publikaciji
INTED2020 Proceedings
Gómez Chova, L ; López Martínez, A. ; Candel Torres, I.
Valencia: International Academy of Technology, Education and Development (IATED)
978-84-09-17939-8
2340-1079
Podaci o skupu
14th International Technology, Education and Development Conference (INTED2020)
predavanje
02.03.2020-04.03.2020
Valencia, Španjolska
Povezanost rada
Informacijske i komunikacijske znanosti, Interdisciplinarne tehničke znanosti, Računarstvo