Domain-specific tensor languages

被引:0
|
作者
Bernardy, Jean-philippe [1 ,2 ]
Jansson, Patrik [1 ,2 ]
机构
[1] Chalmers Univ Technol, Gothenburg, Sweden
[2] Univ Gothenburg, Gothenburg, Sweden
关键词
D O I
10.1017/S0956796825000048
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The tensor notation used in several areas of mathematics is a useful one, but it is not widely available to the functional programming community. In a practical sense, the (embedded) domain-specific languages (dsls) that are currently in use for tensor algebra are either 1. array-oriented languages that do not enforce or take advantage of tensor properties and algebraic structure or 2. follow the categorical structure of tensors but require the programmer to manipulate tensors in an unwieldy point-free notation. A deeper issue is that for tensor calculus, the dominant pedagogical paradigm assumes an audience which is either comfortable with notational liberties which programmers cannot afford, or focus on the applied mathematics of tensors, largely leaving their linguistic aspects (behaviour of variable binding, syntax and semantics, etc.) for the reader to figure out by themselves. This state of affairs is hardly surprising, because, as we highlight, several properties of standard tensor notation are somewhat exotic from the perspective of lambda calculi. We bridge the gap by defining a dsl, embedded in Haskell, whose syntax closely captures the index notation for tensors in wide use in the literature. The semantics of this edsl is defined in terms of the algebraic structures which define tensors in their full generality. This way, we believe that our edsl can be used both as a tool for scientific computing, but also as a vehicle to express and present the theory and applications of tensors.
引用
收藏
页数:42
相关论文
共 50 条
  • [31] Domain-Specific Languages: A Systematic Mapping Study
    Mernik, Marjan
    SOFSEM 2017: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2017, 10139 : 464 - 472
  • [32] Ontology Driven Development of Domain-Specific Languages
    Ceh, Ines
    Crepinsek, Matej
    Kosar, Tomaz
    Mernik, Marjan
    COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2011, 8 (02) : 317 - 342
  • [33] Domain-specific modeling with visual languages - Preface
    Gray, J
    Rossi, M
    Tolvanen, JP
    JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 2004, 15 (3-4): : 207 - 209
  • [34] A Constraint Modeling Framework for Domain-Specific Languages
    Pschorn, Patrick
    Antonino, Pablo Oliveira
    Morgenstern, Andreas
    Kuhn, Thomas
    DSM'19: PROCEEDINGS OF THE 17TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON DOMAIN-SPECIFIC MODELING, 2019, : 20 - 29
  • [35] JTS: Tools for implementing domain-specific languages
    Batory, D
    Lofaso, B
    Smaragdakis, Y
    FIFTH INTERNATIONAL CONFERENCE ON SOFTWARE REUSE - PROCEEDINGS, 1998, : 143 - 153
  • [36] Generating Version Convertors for Domain-Specific Languages
    de Geest, Gerardo
    Vermolen, Sander
    van Deursen, Arie
    Visser, Eelco
    FIFTEENTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2008, : 197 - 201
  • [37] A framework for qualitative assessment of domain-specific languages
    Gökhan Kahraman
    Semih Bilgen
    Software & Systems Modeling, 2015, 14 : 1505 - 1526
  • [38] Building Domain-Specific Modeling Languages for Frameworks
    Viana, Matheus C.
    Penteado, Rosangela A. D.
    do Prado, Antonio F.
    ENTERPRISE INFORMATION SYSTEMS, ICEIS 2012, 2013, 141 : 191 - 206
  • [39] Systematically Deriving Domain-Specific Transformation Languages
    Hoelldobler, Katrin
    Rumpe, Bernhard
    Weisemoeller, Ingo
    2015 ACM/IEEE 18TH INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS (MODELS), 2015, : 136 - 145
  • [40] A framework for families of domain-specific modelling languages
    Benjamin Braatz
    Christoph Brandt
    Software & Systems Modeling, 2014, 13 : 109 - 132