-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Clause 16Standard Clause 16: Intrinsic procedures and modulesStandard Clause 16: Intrinsic procedures and modules
Description
An intrinsic to define an identity matrix would be nice. For example, Matlab has this.
Say:
real(wp),dimension(4,4),parameter :: I = eye(4)
For example, currently, to do this we have to have to do something like this:
real(wp),dimension(4,4),parameter :: I = reshape([1.0_wp,0.0_wp,0.0_wp,0.0_wp,&
0.0_wp,1.0_wp,0.0_wp,0.0_wp,&
0.0_wp,0.0_wp,1.0_wp,0.0_wp,&
0.0_wp,0.0_wp,0.0_wp,1.0_wp],[4,4])
Related maybe to #102.
milancurcic, certik and gronki
Metadata
Metadata
Assignees
Labels
Clause 16Standard Clause 16: Intrinsic procedures and modulesStandard Clause 16: Intrinsic procedures and modules