Learn R Programming

⚠️There's a newer version (0.36.2.1) of this package.Take me there.

tensorA (version 0.36.2)

Advanced Tensor Arithmetic with Named Indices

Description

Provides convenience functions for advanced linear algebra with tensors and computation with data sets of tensors on a higher level abstraction. It includes Einstein and Riemann summing conventions, dragging, co- and contravariate indices, parallel computations on sequences of tensors.

Copy Link

Version

Install

install.packages('tensorA')

Monthly Downloads

201,648

Version

0.36.2

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

November 19th, 2020

Functions in tensorA (0.36.2)

diag.tensor

Creates a "diagonal" tensor
drag.tensor

Managing covariate and contravariate indices
riemann.tensor

Tensor multiplication with Riemann's convention
sequencing

Working with index sequences
bind.tensor

A cbind/rbind for tensors
add.tensor

Element-wise arithmetic operations +,-,*,/ with tensors
as.tensor

Coercion to a tensor
einstein.tensor

Tensor multiplication with Einstein's convention, by summing over all equally named indices.
mul.tensor

Tensor multiplication for the tensor class
names.tensor

Getting and setting index and dimensionnames of a tensor
ftable.tensor

Pretty printing of tensors
power.tensor

Compute the power of a symmetric tensor
pos.tensor

enumeration of index combinations
one.tensor

Creates a tensor with all entries 1
slice.tensor

Working with the indices of a tensor (accessing, slicing, renaming, ...)
solve.tensor

Solving linear equations with tensors
norm.tensor

Calculate the Euclidean norm or Euclidean operator norm of a tensor or its subtensors
chol.tensor

Cholesky decomposition of a tensor
tripledelta.tensor

A tensor with entry 1 if and only if three indices are equal
inv.tensor

Inversion of a tensor as linear mapping from tensors to tensors
undrop.tensor

Adds a spurious dimension to a tensor
is.tensor

Checking for being a tensor
untensor

Removes indices/dimensions from a tensor
margin.tensor

Marginalization of tensors
level.tensor

The level (number of indices) of a tensor
toPos.tensor

get the position of an index of tensor
svd.tensor

Singular value decomposition of tensors
tensorA-package

The tensorA package for tensor arithmetic
to.matrix.tensor

The matrix corresponding to a tensor seen as a linear mapping of tensors.
to.tensor

Creates a tensor object
reorder.tensor

Permutation of indices and storage sequence of a tensor
trace.tensor

Collapse a tensor
reptensor

Repeats a tensor
delta.tensor

Creates a Kronecker delta tensor
mark.tensor

Marks the names of a tensor with a mark
mean.tensor

Mean and variance of tensors
diagmul.tensor

Multiplication of a tensor with a tensor given by its diagonal