A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/j3-fortran/fortran_proposals/issues/103 below:

Identity matrix intrinsic · Issue #103 · j3-fortran/fortran_proposals · GitHub

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