Toggle navigation
GENEUS
Overview
Contents
Source Files
Modules
Procedures
Derived Types
Programs
Source Files
Modules
Procedures
Derived Types
Programs
identity
Function
10 statements
Source File
matrix.f
matrix_m
identity
Contents
None
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]
Contents
None