Do more. Code less. Free software for GPU computing.
<scroll to top>

Singular values

Factorization

Singular values of a matrix. More...

Device pointer interface: Singular value decomposition

Parameters:
[out]d_SThe output containing the singular of the input. if is_diag is false, d_S is a vector. if is_diag is true , d_S is a diagonal matrix. d_A = d_U * d_S * d_V'
[out]d_ULeft unitary Matrix
[out]d_VRight unitary Matrix
[in]jobUCan be one of 'A', 'O', 'S', 'N' similar to lapack
[in]jobVCan be one of 'A', 'O', 'S', 'N' similar to lapack
[in]mNumber of rows in the input.
[in]nNumber of columns in the input
[in]d_AThe input matrix.
[in]m_Number of rows required in the output.
[in]n_Number of columns required in the output.
[in]is_diagData structure specifier of input d_S. is_diag can not be false if d_U or d_V are not NULL
[in]batchNumber of tiles of input being handled.

afError af_svd_S (float *d_S, float *d_U, float *d_V, char jobU, char jobV, unsigned m, unsigned n, const float *d_A, unsigned m_, unsigned n_, bool is_diag, unsigned batch)
 Singular value decomposition on single precision input DLA license not required.
afError af_svd_C (float *d_S, cuComplex *d_U, cuComplex *d_V, char jobU, char jobV, unsigned m, unsigned n, const cuComplex *d_A, unsigned m_, unsigned n_, bool is_diag, unsigned batch)
 Singular value decomposition on single precision complex input DLA license required.
afError af_svd_D (double *d_S, double *d_U, double *d_V, char jobU, char jobV, unsigned m, unsigned n, const double *d_A, unsigned m_, unsigned n_, bool is_diag, unsigned batch)
 Singular value decomposition on double precision input DLA license not required.
afError af_svd_Z (double *d_S, cuDoubleComplex *d_U, cuDoubleComplex *d_V, char jobU, char jobV, unsigned m, unsigned n, const cuDoubleComplex *d_A, unsigned m_, unsigned n_, bool is_diag, unsigned batch)
 Singular value decomposition on double precision complex input DLA license not required.

Detailed Description

Singular values of a matrix.

Double-precision or complex input requires ArrayFire Pro.


Function Documentation

afError af_svd_S ( float *  d_S,
float *  d_U,
float *  d_V,
char  jobU,
char  jobV,
unsigned  m,
unsigned  n,
const float *  d_A,
unsigned  m_,
unsigned  n_,
bool  is_diag,
unsigned  batch 
)

Singular value decomposition on single precision input DLA license not required.

afError af_svd_C ( float *  d_S,
cuComplex *  d_U,
cuComplex *  d_V,
char  jobU,
char  jobV,
unsigned  m,
unsigned  n,
const cuComplex *  d_A,
unsigned  m_,
unsigned  n_,
bool  is_diag,
unsigned  batch 
)

Singular value decomposition on single precision complex input DLA license required.

afError af_svd_D ( double *  d_S,
double *  d_U,
double *  d_V,
char  jobU,
char  jobV,
unsigned  m,
unsigned  n,
const double *  d_A,
unsigned  m_,
unsigned  n_,
bool  is_diag,
unsigned  batch 
)

Singular value decomposition on double precision input DLA license not required.

afError af_svd_Z ( double *  d_S,
cuDoubleComplex *  d_U,
cuDoubleComplex *  d_V,
char  jobU,
char  jobV,
unsigned  m,
unsigned  n,
const cuDoubleComplex *  d_A,
unsigned  m_,
unsigned  n_,
bool  is_diag,
unsigned  batch 
)

Singular value decomposition on double precision complex input DLA license not required.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines