AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: diag

diag(a1, a2, ..., an) returns the n×n square matrix with the entry Mij equal to ai δ(i, j) where δ is the Kronecker delta function.

diag(❨a1, a2, ..., an❩) returns the n×n square matrix with the entry Mij equal to ai δ(i, j) where δ is the Kronecker delta function.