Frameworking the vectorized basic linear algebra for prototyping codes in MATLAB

dc.contributor.authorMoskovka, Alexej
dc.contributor.authorRahman, Talal
dc.contributor.authorValdman, Jan
dc.contributor.authorVatne, Jon Eivind
dc.date.accessioned2026-04-30T18:06:28Z
dc.date.available2026-04-30T18:06:28Z
dc.date.issued2026
dc.date.updated2026-04-30T18:06:28Z
dc.description.abstractWhen writing high-performance code for numerical computations in a scripting language such as MATLAB, it is crucial to vectorize operations within large for-loops. However, this vectorization process often obscures the original mathematical structure, making the code less readable. This issue is particularly pronounced in finite element method (FEM) implementations, despite the inherently structured nature of FEM. A practical remedy is to decouple the vectorization layer from the mathematical logic of the code. This can be effectively achieved by building on top of already-vectorized basic linear algebra subprograms. Over the past 15 years, this idea has been applied in a series of works, resulting in fast, structured, and maintainable code. In this paper, we present a vectorized basic linear algebra package and introduce a formalism based on multilinear algebra to define and explain its functions. We also incorporate MATLAB’s recently introduced page-wise functions to enhance expressiveness. We provide examples such as computing normal vectors, volumes, and finite element assembly to demonstrate the clarity and efficiency of the approach. The resulting codes closely follow mathematical abstraction, facilitate reuse and extension, and support rapid development and prototyping by scientists, engineers, and students.en
dc.format19
dc.identifier.document-number001608319300003
dc.identifier.doi10.1016/j.amc.2025.129778
dc.identifier.issn0096-3003
dc.identifier.obd43948741
dc.identifier.orcidMoskovka, Alexej 0000-0003-0091-151X
dc.identifier.orcidValdman, Jan 0000-0002-6081-5362
dc.identifier.orcidVatne, Jon Eivind 0000-0003-2330-5088
dc.identifier.urihttp://hdl.handle.net/11025/67930
dc.language.isoen
dc.relation.ispartofseriesApplied Mathematics and Computation
dc.rights.accessC
dc.subjectcode vectorizationen
dc.subjectabstract linear algebraen
dc.subjecttensor structuresen
dc.subjecttriangular meshesen
dc.subjectfinite element methoden
dc.titleFrameworking the vectorized basic linear algebra for prototyping codes in MATLABen
dc.typeČlánek v databázi WoS (Jimp)
dc.typeČLÁNEK
dc.type.statusPublished Version
local.files.count1*
local.files.size4416372*
local.has.filesyes*
local.identifier.eid2-s2.0-105019923693

Files

Original bundle
Showing 1 - 1 out of 1 results
No Thumbnail Available
Name:
paper.pdf
Size:
4.21 MB
Format:
Adobe Portable Document Format
License bundle
Showing 1 - 1 out of 1 results
No Thumbnail Available
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description:

Collections