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

Result inconsistency in MKL svd

Yaniv_H_1
Beginner
326 Views

I'm using the following MKL product:

Major: 2017

Minor: 0

Update: 2

on an Intel(R) 64 architecture.

I get inconsistencies in the results from the function LAPACKE_dgesvd. When I input the function with slightly different input matrices I get different V* outputs. These are not the expected inconsistencies due to the non-uniqueness of svd. In my case the input matrix represents a scatter of coordinates in 2D. So the matrix has two columns. The output from svd for the matrix V* should be the rotation matrix to the principal directions. However, in some of the cases I get a sign flipped version of the principal direction angle. This is not a rotation of 90 or 180 deg. compared to the correct principal direction, but rather a simple flipping of sign (23deg. instead of -23deg., i.e.). 

I'm using 'O' and 'S' for the second and third arguments, respectively. 

 

 

0 Kudos
1 Reply
Yaniv_H_1
Beginner
326 Views

Sorry, this was a problem on my end. I didn't notice in the reference manual that the output from the SVD MKL functions is V* and not V. This thread can be ignored

0 Kudos
Reply