Learn R Programming

tensorA (version 0.36.2.1)

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

50,444

Version

0.36.2.1

License

GPL (>= 2)

Last Published

December 13th, 2023

Functions in tensorA (0.36.2.1)

names.tensor

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

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

enumeration of index combinations
svd.tensor

Singular value decomposition of tensors
power.tensor

Compute the power of a symmetric tensor
solve.tensor

Solving linear equations with tensors
tensorA-package

The tensorA package for tensor arithmetic
trace.tensor

Collapse a tensor
reptensor

Repeats a tensor
reorder.tensor

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

Creates a tensor object
toPos.tensor

get the position of an index of tensor
untensor

Removes indices/dimensions from a tensor
sequencing

Working with index sequences
riemann.tensor

Tensor multiplication with Riemann's convention
to.matrix.tensor

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

Adds a spurious dimension to a tensor
tripledelta.tensor

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

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

A cbind/rbind for tensors
diagmul.tensor

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

Cholesky decomposition of a tensor
as.tensor

Coercion to a tensor
level.tensor

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

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

Creates a Kronecker delta tensor
diag.tensor

Creates a "diagonal" tensor
mul.tensor

Tensor multiplication for the tensor class
ftable.tensor

Pretty printing of tensors
drag.tensor

Managing covariate and contravariate indices
norm.tensor

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

Marginalization of tensors
mark.tensor

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

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

Mean and variance of tensors
is.tensor

Checking for being a tensor
one.tensor

Creates a tensor with all entries 1