Functions | |
magma_int_t | magma_sgels3_gpu (magma_trans_t trans, magma_int_t m, magma_int_t n, magma_int_t nrhs, magmaFloat_ptr dA, magma_int_t ldda, magmaFloat_ptr dB, magma_int_t lddb, float *hwork, magma_int_t lwork, magma_int_t *info) |
Solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A. | |
magma_int_t | magma_sgels_gpu (magma_trans_t trans, magma_int_t m, magma_int_t n, magma_int_t nrhs, magmaFloat_ptr dA, magma_int_t ldda, magmaFloat_ptr dB, magma_int_t lddb, float *hwork, magma_int_t lwork, magma_int_t *info) |
Solves the overdetermined, least squares problem min || A*X - C || using the QR factorization A. |
magma_int_t magma_sgels3_gpu | ( | magma_trans_t | trans, | |
magma_int_t | m, | |||
magma_int_t | n, | |||
magma_int_t | nrhs, | |||
magmaFloat_ptr | dA, | |||
magma_int_t | ldda, | |||
magmaFloat_ptr | dB, | |||
magma_int_t | lddb, | |||
float * | hwork, | |||
magma_int_t | lwork, | |||
magma_int_t * | info | |||
) |
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 | REAL 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 SGEQRF3. |
[in] | ldda | INTEGER The leading dimension of the array A, LDDA >= M. |
[in,out] | dB | REAL 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) REAL 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_sgeqrf_nb( M ). 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_sgels_gpu | ( | magma_trans_t | trans, | |
magma_int_t | m, | |||
magma_int_t | n, | |||
magma_int_t | nrhs, | |||
magmaFloat_ptr | dA, | |||
magma_int_t | ldda, | |||
magmaFloat_ptr | dB, | |||
magma_int_t | lddb, | |||
float * | hwork, | |||
magma_int_t | lwork, | |||
magma_int_t * | info | |||
) |
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 | REAL 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 SGEQRF. |
[in] | ldda | INTEGER The leading dimension of the array A, LDDA >= M. |
[in,out] | dB | REAL 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) REAL 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_sgeqrf_nb( M ). 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
|