Skip to content
ForCADDocumentation

eye Function

public pure function eye(n) result(I)

Allocate an n by n identity matrix.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

Nonnegative matrix order.

Return Value real(kind=rk), allocatable, (:,:)