Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Routine to compute A=xy'?

tang__wei
Beginner
277 Views

The BLAS Level 2 routine cblas_?ger computes A := alpha*x*y'+ A. Is there a simpler routine that just calculates A := alpha*x*y'?

Setting A=0 offers the same results, but does it provide good performance too? i.e. am I wasting computation in doing the additions?

0 Kudos
1 Reply
Ruqiu_C_Intel
Moderator
277 Views

Hello Tang, Wei,

MKL only provides  A := alpha*x*y'+ A for cblas_?ger. Yes, you can set A=0 to meet your expectation of A := alpha*x*y'. And it has good performance without any performance degradation.

Best Regards,

Ruqiu

0 Kudos
Reply