Most of this documentation is copied from R's documentation for
lsfit
. The function gpuLsfit
performs a least--squares fit
using a GPU enabled QR decomposition.
Note: The QR decomposition employed by gpuLm
is optimized for speed
and uses minimal pivoting. If more precise pivoting is desired, then
either the function gpuQR
or, better still, svd
should be used.
gpuLsfit(x, y, wt = NULL, intercept = TRUE, useSingle = TRUE, tolerance=gpuLm.defaultTol(useSingle), yname = NULL)
wt
.If any observation has a missing value in any field, that observation is removed before the analysis is carried out. This can be quite inefficient if there is a lot of missing data.
The implementation is via a modification of the LINPACK subroutines which allow for multiple left-hand sides.
lsfit
, lm
,
ls.print
, ls.diag
##-- Using the same data as the lm(.) example:
lsD9 <- gpuLsfit(x = unclass(gl(2,10)), y = weight)
ls.print(lsD9)
Run the code above in your browser using DataLab