Learn R Programming

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

tensorA (version 0.36.1)

Advanced Tensor Arithmetic with Named Indices

Description

Provides convenience functions for advanced linear algebra with tensors and computation with datasets 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

51,193

Version

0.36.1

License

GPL (>= 2)

Maintainer

K Gerald van den Boogaart

Last Published

July 29th, 2018

Functions in tensorA (0.36.1)

margin.tensor

Marginalization of tensors
svd.tensor

Singular value decomposition of tensors
tensorA-package

The tensorA package for tensor arithmetic
bind.tensor

A cbind/rbind for tensors
chol.tensor

Cholesky decomposition of a tensor
norm.tensor

Calculate the Euclidean norm or Euclidean operator norm of a tensor or its subtensors
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
delta.tensor

Creates a Kronecker delta tensor
diagmul.tensor

Multiplication of a tensor with a tensor given by its diagonal
mark.tensor

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

Mean and variance of tensors
diag.tensor

Creates a "diagonal" tensor
drag.tensor

Managing covariate and contravariate indices
tripledelta.tensor

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

enumeration of index combinations
undrop.tensor

Adds a spurious dimension to a tensor
power.tensor

Compute the power of a symmetric tensor
mul.tensor

Tensor multiplication for the tensor class
names.tensor

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

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

Permutation of indices and storage sequence of a tensor
untensor

Removes indices/dimensions from a tensor
as.tensor

Coercion to a tensor
reptensor

Repeats a tensor
to.tensor

Creates a tensor object
inv.tensor

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

Checking for being a tensor
riemann.tensor

Tensor multiplication with Riemann's convention
sequencing

Working with index sequences
toPos.tensor

get the position of an index of tensor
to.matrix.tensor

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

Collapse a tensor
ftable.tensor

Pretty printing of tensors
einstein.tensor

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

The level (number of indices) of a tensor