2 ! Check the fix for PR28947, in which the mechanism for dealing
3 ! with matmul (a, transpose (b)) would cause wrong results for
4 ! a having a rank == 1.
6 ! Contributed by Harald Anlauf <anlauf@gmx.de>
11 real :: h(3,3), mat(2,3)
13 h(:,:) = - HUGE (1.0)/4 ! Preset unused elements suitably...
18 h(3,:) = h(3,:) + matmul (matmul (h(3,:), transpose (mat
)), mat
)
20 if (any (h(3,:) .ne
. (/2.0, 2.0, 3.0/))) call abort ()