Author:
Stan Eduard George,Ciubotaru Dan Andrei,Renda Michele,Alexa Călin
Abstract
AbstractWe review the dimensional check problem of the high-level programming languages, discuss the existing solutions, and come up with a new solution suited for scientific and engineering computations. Then, we introduce , our library designed to make scalar, vector, and matrix operations using units of measurement. Moreover, supports dimensional-aware operations for complex numbers, quaternions, octonions, and sedenions. We provide tables of the relevant functions and operators implemented. Our library was compared with several existing solutions, and the results are shown in the performance section. Finally, we present our future plans for improving the current implementation.
Funder
Romanian Ministry of Research, Innovation and Digitization
Publisher
Springer Science and Business Media LLC
Reference32 articles.
1. Mayerhofer, T., Wimmer, M. & Vallecillo, A. Adding uncertainty and units to quantity types in software models. In Proceedings of the 2016 ACM SIGPLAN International Conference on Software Language Engineering, SLE 2016, 118–131. https://doi.org/10.1145/2997364.2997376 (Association for Computing Machinery, 2016).
2. McKeever, S., Bennich-Björkman, O. & Salah, O.-A. Unit of measurement libraries, their popularity and suitability. Softw. Pract. Exp. 51, 711–734. https://doi.org/10.1002/spe.2926 (2021).
3. Preussner, G. M. Dimensional Analysis in Programming Languages. https://gmpreussner.com/research/dimensional-analysis-in-programming-languages (2018).
4. Apple Inc. Swift Language. https://swift.org (2022).
5. Kennedy, A. Types for Units-of-Measure: Theory and Practice. In Central European Functional Programming School: Third Summer School, CEFP 2009, Budapest, Hungary, May 21–23, 2009 and Komárno, Slovakia, May 25–30, 2009, Revised Selected Lectures, Lecture Notes in Computer Science (Horváth, Z., Plasmeijer, R. & Zsók, V., eds.), 268–305. https://doi.org/10.1007/978-3-642-17685-2_8 (Springer, 2010).