ricci: Ricci Calculus

Provides a compact 'R' interface for performing tensor calculations. This is achieved by allowing (upper and lower) index labeling of arrays and making use of Ricci calculus conventions to implicitly trigger contractions and diagonal subsetting. Explicit tensor operations, such as addition, subtraction and multiplication of tensors via the standard operators, raising and lowering indices, taking symmetric or antisymmetric tensor parts, as well as the Kronecker product are available. Common tensors like the Kronecker delta, Levi Civita epsilon, certain metric tensors, the Christoffel symbols, the Riemann as well as Ricci tensors are provided. The covariant derivative of tensor fields with respect to any metric tensor can be evaluated. An effort was made to provide the user with useful error messages.

Package details

AuthorLukas Schneiderbauer [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-0975-6803>)
MaintainerLukas Schneiderbauer <lukas.schneiderbauer@gmail.com>
LicenseGPL (>= 3)
Version0.1.1
URL https://github.com/lschneiderbauer/ricci https://lschneiderbauer.github.io/ricci/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("ricci")

Try the ricci package in your browser

Any scripts or data that you put into this service are public.

ricci documentation built on Sept. 9, 2025, 5:56 p.m.