CPKit
v1.6.1

Identity & Diagonal Generator

CreationEasy

Construct identity matrices or custom diagonal matrices with specific diagonal parameters.

Alt+Shift+5

Configuration Panel

Complexity Indices

Time ComplexityO(N^2)
Auxiliary SpaceO(N^2) grid buffer
Conceptual Overview

An Identity matrix is a square matrix with 1s on the main diagonal and 0s elsewhere. A Diagonal matrix generalized this with arbitrary values on the main diagonal.

Source: CP-Algorithms reference guide