A new advance on dimensional-aware scalar, vector and matrix operations in C++
Computational Physics
2023-07-18 v2
Abstract
We 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 Univec, our C++ library designed to make scalar, vector, and matrix operations using units of measurement. Moreover, Univec 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.
Keywords
Cite
@article{arxiv.2205.09071,
title = {A new advance on dimensional-aware scalar, vector and matrix operations in C++},
author = {Eduard George Stan and Dan Andrei Ciubotaru and Michele Renda and Călin Alexa},
journal= {arXiv preprint arXiv:2205.09071},
year = {2023}
}
Comments
18 pages, 5 figures, 8 tables