Vector multiplication using MATMUL in Fortran

The problem is that x(1:9,1) isn’t of shape [9 1] but [9]. You need to use x(1:9, 1:1). The same goes for m.

Leave a Comment