Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
24 Views

Finding the lin alg functions for C++

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
Highlighted
Moderator
24 Views

Matt,
please look into cblas example - cblas_dgemmx.c.
You can find this example into \examples\cblas\source\ directory.
--Gennady
0 Kudos
Highlighted
Beginner
24 Views

Exactly what I was looking for! Thanks Gennady!
0 Kudos