Package: tensorA 0.36.2.1

K. Gerald van den Boogaart

tensorA: Advanced Tensor Arithmetic with Named Indices

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.

Authors:K. Gerald van den Boogaart <[email protected]>

tensorA_0.36.2.1.tar.gz
tensorA_0.36.2.1.tar.gz(r-4.5-noble)tensorA_0.36.2.1.tar.gz(r-4.4-noble)
tensorA_0.36.2.1.tgz(r-4.4-emscripten)tensorA_0.36.2.1.tgz(r-4.3-emscripten)
tensorA.pdf |tensorA.html
tensorA/json (API)

# Install 'tensorA' in R:
install.packages('tensorA', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

77 exports 9.18 score 0 dependencies 357 dependents 62 scripts 42.2k downloads

Last updated 9 months agofrom:5138ccc96d. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 09 2024
R-4.5-linux-x86_64OKSep 09 2024

Exports:-.tensor[.tensor[[.tensor[[<-.tensor*.tensor/.tensor%e%%e%.tensor%r%%r%.tensor^.tensor+.tensor|.tensor$.tensoradd.tensoras.contravariateas.contravariate.characteras.covariateas.covariate.characteras.tensoras.tensor.defaultas.tensor.tensorbind.tensorchol.tensorcontranamedelta.tensordiag.tensordiagmul.tensordim<-.tensordimnames.tensordimnames<-.tensordrag.tensoreinstein.tensorftable.tensorinv.tensoris.contravariateis.contravariate.characteris.contravariate.numericis.contravariate.tensoris.covariateis.covariate.characteris.covariate.numericis.covariate.tensoris.tensorlevel.tensormargin.tensormarkmark.charactermark.numericmark.tensormean.tensormul.tensornames.tensornames<-.tensornormnorm.tensorone.tensoropnormopnorm.tensorpos.tensorpower.tensorrenamefirst.tensorreorder.tensorrep.tensorriemann.tensorslice.tensorsolve.tensorsvd.tensorto.matrix.tensorto.tensorto.tensor.defaulttoPos.tensortrace.tensortripledelta.tensorundrop.tensoruntensorvar.tensor

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
The tensorA package for tensor arithmetictensorA-package Tensor tensor tensorA
Element-wise arithmetic operations +,-,*,/ with tensors*.tensor +.tensor -.tensor /.tensor add.tensor
Coercion to a tensoras.tensor as.tensor.default as.tensor.tensor
A cbind/rbind for tensorsbind.tensor
Cholesky decomposition of a tensorchol.tensor
Creates a Kronecker delta tensordelta.tensor
Creates a "diagonal" tensordiag.tensor
Multiplication of a tensor with a tensor given by its diagonaldiagmul.tensor
Managing covariate and contravariate indicesas.contravariate as.contravariate.character as.covariate as.covariate.character contraname drag.tensor is.contravariate is.contravariate.character is.contravariate.numeric is.contravariate.tensor is.covariate is.covariate.character is.covariate.numeric is.covariate.tensor
Tensor multiplication with Einstein's convention, by summing over all equally named indices.%e% %e%.tensor einstein.tensor
Pretty printing of tensorsftable.tensor
Inversion of a tensor as linear mapping from tensors to tensorsinv.tensor
Checking for being a tensoris.tensor
The level (number of indices) of a tensorlevel.tensor
Marginalization of tensorsmargin.tensor
Marks the names of a tensor with a markmark mark.character mark.numeric mark.tensor
Mean and variance of tensorsmean.tensor var.tensor
Tensor multiplication for the tensor classmul.tensor
Getting and setting index and dimensionnames of a tensordim<-.tensor dimnames.tensor dimnames<-.tensor names.tensor names<-.tensor
Calculate the Euclidean norm or Euclidean operator norm of a tensor or its subtensorsnorm norm.tensor opnorm opnorm.tensor
Creates a tensor with all entries 1one.tensor
enumeration of index combinationspos.tensor
Compute the power of a symmetric tensorpower.tensor
Permutation of indices and storage sequence of a tensorreorder.tensor
Repeats a tensorrep.tensor
Tensor multiplication with Riemann's convention%r% %r%.tensor riemann.tensor
Working with index sequences$.tensor renamefirst.tensor ^.tensor |.tensor
Working with the indices of a tensor (accessing, slicing, renaming, ...)slice.tensor [.tensor [<-.tensor [[.tensor [[<-.tensor
Solving linear equations with tensorssolve.tensor
Singular value decomposition of tensorssvd.tensor
The matrix corresponding to a tensor seen as a linear mapping of tensors.to.matrix.tensor
Creates a tensor objectto.tensor to.tensor.default
get the position of an index of tensortoPos.tensor
Collapse a tensortrace.tensor
A tensor with entry 1 if and only if three indices are equaltripledelta.tensor
Adds a spurious dimension to a tensorundrop.tensor
Removes indices/dimensions from a tensoruntensor