GENEUS
Overview
Source Files
Modules
Procedures
Derived Types
Programs
identity
Function
10 statements
Source File
matrix.f90
matrix_m
identity
Contents
public pure function identity(n) result(R)
Constructs an n×n identity matrix.
Arguments
Type
Intent
Optional
Attributes
Name
integer,
intent(in)
::
n
Matrix dimension
Return Value
real(kind=wp), dimension(n, n)
Identity matrix [n×n]