0

I did some test using cblas_sgemv in openblas and found that it returned a wrong result in my test case.

A is
1 2
3 4
5 6

B is 
1 2

The output C should be 5 11 17

But, it outputs 5 14 0

Here is the sample code. https://docs.google.com/document/d/15mCkfcQuruQxi4CjvVkoK2jfgnG2w3izd0wMFMW6UOk/edit?usp=sharing

Jaap
  • 81,064
  • 34
  • 182
  • 193
sushiman
  • 13
  • 1
  • 4

1 Answers1

1

the lda parameter seems to be wrong. since the order is CblasRowMajor it should be 2 (number of columns) instead of 3 (number of rows).

cf. https://stackoverflow.com/a/30208420/6058571

stefan0xC
  • 337
  • 5
  • 11