The code is correct, but on lines 11-12 and 59-60 in test_sgemv.c, the matrices in the comments should be the transpose of what they are.