4

I want to perform a string of matrix multiplies, and would prefer not allocate a fresh matrix if I can avoid it. For example, I want to compute C = C * B (so I pass in C as A and C)

Can I do this (due to dgemm having marked both A and B as in variables)?

Steven Lu
  • 41,389
  • 58
  • 210
  • 364

2 Answers2

3

None of the BLAS implementations I have even used had a dgemm which could work in-place.

talonmies
  • 70,661
  • 34
  • 192
  • 269
3

No, you can never do this and it has nothing to do with the BLAS implementation. See

Is it safe to pass GEMV the same output- as input vector to achieve a destructive matrix application?

Community
  • 1
  • 1
Ian Bush
  • 6,996
  • 1
  • 21
  • 27