![]() |
MAGMA
2.0.0
Matrix Algebra for GPU and Multicore Architectures
|
Functions | |
magma_int_t | magma_cgels (magma_trans_t trans, magma_int_t m, magma_int_t n, magma_int_t nrhs, magmaFloatComplex_ptr A, magma_int_t lda, magmaFloatComplex_ptr B, magma_int_t ldb, magmaFloatComplex *hwork, magma_int_t lwork, magma_int_t *info) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A. More... | |
magma_int_t | magma_cgels3_gpu (magma_trans_t trans, magma_int_t m, magma_int_t n, magma_int_t nrhs, magmaFloatComplex_ptr dA, magma_int_t ldda, magmaFloatComplex_ptr dB, magma_int_t lddb, magmaFloatComplex *hwork, magma_int_t lwork, magma_int_t *info) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A. More... | |
magma_int_t | magma_cgels_gpu (magma_trans_t trans, magma_int_t m, magma_int_t n, magma_int_t nrhs, magmaFloatComplex_ptr dA, magma_int_t ldda, magmaFloatComplex_ptr dB, magma_int_t lddb, magmaFloatComplex *hwork, magma_int_t lwork, magma_int_t *info) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A. More... | |
magma_int_t magma_cgels | ( | magma_trans_t | trans, |
magma_int_t | m, | ||
magma_int_t | n, | ||
magma_int_t | nrhs, | ||
magmaFloatComplex_ptr | A, | ||
magma_int_t | lda, | ||
magmaFloatComplex_ptr | B, | ||
magma_int_t | ldb, | ||
magmaFloatComplex * | hwork, | ||
magma_int_t | lwork, | ||
magma_int_t * | info | ||
) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A.
The underdetermined problem (m < n) is not currently handled.
[in] | trans | magma_trans_t
|
[in] | m | INTEGER The number of rows of the matrix A. M >= 0. |
[in] | n | INTEGER The number of columns of the matrix A. M >= N >= 0. |
[in] | nrhs | INTEGER The number of columns of the matrix C. NRHS >= 0. |
[in,out] | A | COMPLEX array, dimension (LDA,N) On entry, the M-by-N matrix A. On exit, A is overwritten by details of its QR factorization as returned by CGEQRF. |
[in] | lda | INTEGER The leading dimension of the array A, LDA >= M. |
[in,out] | B | COMPLEX array, dimension (LDDB,NRHS) On entry, the M-by-NRHS matrix C. On exit, the N-by-NRHS solution matrix X. |
[in] | ldb | INTEGER The leading dimension of the array B. LDB >= M. |
[out] | hwork | (workspace) COMPLEX array, dimension MAX(1,LWORK). On exit, if INFO = 0, HWORK[0] returns the optimal LWORK. |
[in] | lwork | INTEGER The dimension of the array HWORK, LWORK >= max( N*NB, 2*NB*NB ), where NB is the blocksize given by magma_get_cgeqrf_nb( M, N ). If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the HWORK array, returns this value as the first entry of the HWORK array. |
[out] | info | INTEGER
|
magma_int_t magma_cgels3_gpu | ( | magma_trans_t | trans, |
magma_int_t | m, | ||
magma_int_t | n, | ||
magma_int_t | nrhs, | ||
magmaFloatComplex_ptr | dA, | ||
magma_int_t | ldda, | ||
magmaFloatComplex_ptr | dB, | ||
magma_int_t | lddb, | ||
magmaFloatComplex * | hwork, | ||
magma_int_t | lwork, | ||
magma_int_t * | info | ||
) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A.
The underdetermined problem (m < n) is not currently handled.
[in] | trans | magma_trans_t
|
[in] | m | INTEGER The number of rows of the matrix A. M >= 0. |
[in] | n | INTEGER The number of columns of the matrix A. M >= N >= 0. |
[in] | nrhs | INTEGER The number of columns of the matrix C. NRHS >= 0. |
[in,out] | dA | COMPLEX array, dimension (LDA,N) On entry, the M-by-N matrix A. On exit, A is overwritten by details of its QR factorization as returned by CGEQRF3. |
[in] | ldda | INTEGER The leading dimension of the array A, LDDA >= M. |
[in,out] | dB | COMPLEX array on the GPU, dimension (LDDB,NRHS) On entry, the M-by-NRHS matrix C. On exit, the N-by-NRHS solution matrix X. |
[in] | lddb | INTEGER The leading dimension of the array dB. LDDB >= M. |
[out] | hwork | (workspace) COMPLEX array, dimension MAX(1,LWORK). On exit, if INFO = 0, HWORK[0] returns the optimal LWORK. |
[in] | lwork | INTEGER The dimension of the array HWORK, LWORK >= (M - N + NB)*(NRHS + NB) + NRHS*NB, where NB is the blocksize given by magma_get_cgeqrf_nb( M, N ). If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the HWORK array, returns this value as the first entry of the HWORK array. |
[out] | info | INTEGER
|
magma_int_t magma_cgels_gpu | ( | magma_trans_t | trans, |
magma_int_t | m, | ||
magma_int_t | n, | ||
magma_int_t | nrhs, | ||
magmaFloatComplex_ptr | dA, | ||
magma_int_t | ldda, | ||
magmaFloatComplex_ptr | dB, | ||
magma_int_t | lddb, | ||
magmaFloatComplex * | hwork, | ||
magma_int_t | lwork, | ||
magma_int_t * | info | ||
) |
CGELS solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A.
The underdetermined problem (m < n) is not currently handled.
[in] | trans | magma_trans_t
|
[in] | m | INTEGER The number of rows of the matrix A. M >= 0. |
[in] | n | INTEGER The number of columns of the matrix A. M >= N >= 0. |
[in] | nrhs | INTEGER The number of columns of the matrix C. NRHS >= 0. |
[in,out] | dA | COMPLEX array on the GPU, dimension (LDA,N) On entry, the M-by-N matrix A. On exit, A is overwritten by details of its QR factorization as returned by CGEQRF. |
[in] | ldda | INTEGER The leading dimension of the array A, LDDA >= M. |
[in,out] | dB | COMPLEX array on the GPU, dimension (LDDB,NRHS) On entry, the M-by-NRHS matrix C. On exit, the N-by-NRHS solution matrix X. |
[in] | lddb | INTEGER The leading dimension of the array dB. LDDB >= M. |
[out] | hwork | (workspace) COMPLEX array, dimension MAX(1,LWORK). On exit, if INFO = 0, HWORK[0] returns the optimal LWORK. |
[in] | lwork | INTEGER The dimension of the array HWORK, LWORK >= (M - N + NB)*(NRHS + NB) + NRHS*NB, where NB is the blocksize given by magma_get_cgeqrf_nb( M, N ). If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the HWORK array, returns this value as the first entry of the HWORK array. |
[out] | info | INTEGER
|