An Algebraic Programming Style for Numerical Software and its Optimization

03/01/1999
by   T. B. Dinesh, et al.
0

The abstract mathematical theory of partial differential equations (PDEs) is formulated in terms of manifolds, scalar fields, tensors, and the like, but these algebraic structures are hardly recognizable in actual PDE solvers. The general aim of the Sophus programming style is to bridge the gap between theory and practice in the domain of PDE solvers. Its main ingredients are a library of abstract datatypes corresponding to the algebraic structures used in the mathematical theory and an algebraic expression style similar to the expression style used in the mathematical theory. Because of its emphasis on abstract datatypes, Sophus is most naturally combined with object-oriented languages or other languages supporting abstract datatypes. The resulting source code patterns are beyond the scope of current compiler optimizations, but are sufficiently specific for a dedicated source-to-source optimizer. The limited, domain-specific, character of Sophus is the key to success here. This kind of optimization has been tested on computationally intensive Sophus style code with promising results. The general approach may be useful for other styles and in other application domains as well.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/03/2019

A user-guide to Gridap – grid-based approximation of partial differential equations in Julia

We present Gridap, a new scientific software library for the numerical a...
research
04/21/2012

Paraiso : An Automated Tuning Framework for Explicit Solvers of Partial Differential Equations

We propose Paraiso, a domain specific language embedded in functional pr...
research
10/22/2018

Scaling up Deep Learning for PDE-based Models

In numerous applications, forecasting relies on numerical solvers for pa...
research
02/16/2021

Compilation of mathematical expressions in Kotlin

Interpreting mathematical expressions at runtime is a standard task in s...
research
07/12/2022

MultiShape: A Spectral Element Method, with Applications to Dynamic Density Functional Theory and PDE-Constrained Optimization

A numerical framework is developed to solve various types of PDEs on com...
research
03/21/2018

Generic Zero-Cost Reuse for Dependent Types

Dependently typed languages are well known for having a problem with cod...
research
08/27/2018

AutoAlias: Automatic Variable-Precision Alias Analysis for Object-Oriented Programs

The aliasing question (can two reference expressions point, during an ex...

Please sign up or login with your details

Forgot password? Click here to reset