Developer Reference

Intel® oneAPI Math Kernel Library LAPACK Examples

ID 766877
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

CGESVD Example

NOTE:

For a detailed description and reference information on this function, see the Intel® oneAPI Math Kernel Library Developer Reference.

The routine computes the singular value decomposition (SVD) of a rectangular complex matrix A, optionally the left and/or right singular vectors.

The SVD is written as:

A = U*SIGMA*VH

where

  • A is a complex m-by-n matrix.

  • SIGMA is an m-by-n matrix which is zero except for its min(m,n) diagonal elements.

  • U is an m-by-m unitary matrix.

  • VH (V conjugate transposed) is an n-by-n unitary matrix.

The diagonal elements of SIGMA are the singular values of A; they are real and non-negative, and are returned in descending order. The first min(m,n) columns of U and V are the left and right singular vectors of A.

The routine returns VH, not V.

C Interface

Please refer to the Matrix Layout section of the C Interface Conventions for the description of Row Major (C default) and Column Major (Fortran default).