Type Inference For Linear Algebra With Units Of Measurement - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport Technique) Année : 2013

Type Inference For Linear Algebra With Units Of Measurement

Résumé

Refining types of numerical data with units of measurement has the potential to increase safety of programming languages but is restricted to homogeneous units when checked statically with parametric polymorphism. We lift units to vectors and show how type inference of linear algebra expressions can statically determine safety for data with heterogeneous units. The typing is based on the dyadic product of units that is found in linear transformations and the corresponding vector spaces. Since it is a refinement of Kennedy's types for units we automatically obtain a unification algorithm, which gives principal types for linear algebra. The extension of unit-unification to numerical data with heterogeneous units makes the safety of statically checked numerical expressions available to a significantly larger set of use-cases.
Fichier non déposé

Dates et versions

hal-00923380 , version 1 (02-01-2014)

Identifiants

  • HAL Id : hal-00923380 , version 1

Citer

Paul Griffioen. Type Inference For Linear Algebra With Units Of Measurement. [Technical Report] SwAT-1302, 2013, pp.1 - 32. ⟨hal-00923380⟩

Collections

INRIA INRIA2 LARA
243 Consultations
0 Téléchargements

Partager

Gmail Facebook X LinkedIn More