Reference index · List of Tcl commands

identity_matrix

Name

identity_matrix - Create an identity matrix.

Synopsis

identity_matrix ?-gf gf? size

Options

-gf gf

Galois field (Java reflection object), optional. Galois field, in which to create the matrix. If the parameter is omitted, the field previously set by set_default_gf is used.

size

Integer. Size of the matrix.

Returns

Matrix (Java reflection object).

Examples

identity_matrix -gf [gf 2] 4

Creates 4-by-4 identity matrix over GF(2).