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

Finding the lin alg functions for C++

madir
Beginner
290 Views
Hi all,

I'm new to c/c++ and new to MKL and I think I need a little help from you experienced guys:)

I need to write a function that involves

- SVD <--- I got that one to work!
- matrix multiplication
- matrix transpose
- divide rows/cols in matrix with a scalar (or multiply with the inverse of a diagonal matrix)
- finding (complex) eigenvalues
- LS solution to Ax=b

So far I have been veryconfusedby all the FORTRAN stuff in the documentation (I'm coding in C++), but I have managed to get a working SVD by modifying an example that uses LAPACKE_dgesvd.

For matrix multiplication I thought I could use dgemm, but in the documentation there is no interface for C and I couldn't find any examples! There seems to bemainly fortran functions in MKL!What shall I do? Can somebody help me finding the functions I need?Any help is MUCH appreciated!

Best regards,
Matt
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
290 Views
Matt,
please look into cblas example - cblas_dgemmx.c.
You can find this example into \examples\cblas\source\ directory.
--Gennady
0 Kudos
madir
Beginner
290 Views
Exactly what I was looking for! Thanks Gennady!
0 Kudos
Reply