Diagonal Last update: 09.03.2026 Creation of a matrix, of size N by N, with the input vector on the diagonal and 0 elsewhere. Interface Name Kind Type Comment N P N/A Number of rows and columns in matrix v I numeric^N Input vector A O numeric^N^N Output matrix Parent topic:Matrix