×

zbMATH — the first resource for mathematics

Elements of design for containers and solutions in the LinBox library (extended abstract). (English) Zbl 1434.68699
Hong, Hoon (ed.) et al., Mathematical software – ICMS 2014. 4th international congress, Seoul, South Korea, August 5–9, 2014. Proceedings. Berlin: Springer. Lect. Notes Comput. Sci. 8592, 654-662 (2014).
Summary: We describe in this paper new design techniques used in the C++ exact linear algebra library LinBox, intended to make the library safer and easier to use, while keeping it generic and efficient. First, we review the new simplified structure for containers, based on our founding scope allocation model. We explain design choices and their impact on coding: unification of our matrix classes, clearer model for matrices and submatrices, etc. Then we present a variation of the strategy design pattern that is comprised of a controller-plugin system: the controller (solution) chooses among plug-ins (algorithms) that always call back the controllers for subtasks. We give examples using the solution mul. Finally we present a benchmark architecture that serves two purposes: Providing the user with easier ways to produce graphs; Creating a framework for automatically tuning the library and supporting regression testing.
For the entire collection see [Zbl 1293.65003].
MSC:
68W30 Symbolic computation and algebraic computation
15-04 Software, source code, etc. for problems pertaining to linear algebra
68V35 Digital mathematics libraries and repositories
Software:
LinBox
PDF BibTeX XML Cite
Full Text: DOI