Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
- Finding the lin alg functions for C++

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

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

madir

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-11-2011
09:20 AM

24 Views

Finding the lin alg functions for C++

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

2 Replies

Highlighted
##

Matt,

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-11-2011
12:10 PM

24 Views

please look into cblas example - cblas_dgemmx.c.

You can find this example into \examples\cblas\source\ directory.

--Gennady

Highlighted
##

madir

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-12-2011
08:45 AM

24 Views

Exactly what I was looking for! Thanks Gennady!

For more complete information about compiler optimizations, see our Optimization Notice.