An intrinsic to define an identity matrix would be nice. For example, Matlab has this.
real(wp),dimension(4,4),parameter :: I = eye(4)
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])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4