Function Repository Resource:

IdentityHypermatrix

Source Notebook

Get the d-dimensional identity hypermatrix

Contributed by: Riccardo Gatti

ResourceFunction["IdentityHypermatrix"][n,d]

gives the identity hypermatrix n××n=nd.

Details

A d-dimensional n××n=nd cubical hypermatrix H is defined as where is the generalization of KroneckerDelta such that δi1 in=1 if and only if all the subscript values are 1, and 0 otherwise.

Examples

Basic Examples (1) 

Compute the identity matrix for n=2 and d=4 in matrix form:

In[1]:=
ResourceFunction["IdentityHypermatrix"][2, 4] // MatrixForm
Out[1]=

Scope (1) 

Compute the identity matrix for n=3 and d=3:

In[2]:=
ResourceFunction["IdentityHypermatrix"][3, 3]
Out[2]=

Publisher

Riccardo Gatti

Version History

  • 1.0.0 – 21 November 2022

Source Metadata

Related Resources

License Information