eye
- eye(dim)[source]
Creates an array defining the idendity.
- Parameters:
dim (int) – Dimnension of the idendity matrix.
- Raises:
ValueError – If the given dimension is not supported.
TypeError – If an input parameter has not the right type.
- Returns:
y – Idendity matrix as an instance of array.
- Return type: