delta.tensor {tensorA}R Documentation

Creates a Kronecker delta tensor

Description

The delta tensor is the tensor equivalent of the identity.

Usage

delta.tensor(d,mark="'",dn=NULL,by=NULL)

Arguments

d the row dimensions
mark a character to be concatenated to the names of the row dimensions to get the column dimension names
dn dimnames for the result
by the dimensions which should not be duplicated

Details

E_{i_1...i_n j_1...j_n}=delta_{i_1j_1}...delta_{i_n j_n}

Value

a tensor with dimension c(d,mark(d,mark))

Author(s)

K. Gerald van den Boogaart

References

See Also

to.tensor

Examples

delta.tensor(c(a=2,b=3))

[Package tensorA version 0.2 Index]