delta {calculus}R Documentation

Generalized Kronecker Delta

Description

Computes the Generalized Kronecker Delta.

Usage

delta(n, p = 1)

Arguments

n

number of elements for each dimension.

p

order of the generalized Kronecker delta, p=1 for the standard Kronecker delta.

Value

array representing the generalized Kronecker delta tensor.

References

Guidotti, E. (2020). "calculus: High dimensional numerical and symbolic calculus in R". https://arxiv.org/abs/2101.00086

See Also

Other tensor algebra: contraction(), diagonal(), einstein(), epsilon(), index()

Examples

### Kronecker delta 3x3
delta(3)

### generalized Kronecker delta 3x3 of order 2
delta(3, p = 2)  


[Package calculus version 0.3.1 Index]