% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cuda.R
\docType{data}
\name{cuda}
\alias{cuda}
\title{CUDA-accelerated DRESS functions.}
\description{
An environment containing GPU-accelerated versions of \code{dress_fit}
and \code{delta_dress_fit} with identical signatures.  Switch from
CPU to GPU by prefixing calls with \code{cuda$}.
}
\details{
The \code{cuda} environment provides:
\describe{
  \item{\code{cuda$dress_fit(...)}}{GPU-accelerated \code{\link{dress_fit}}.
        Same arguments and return value.}
  \item{\code{cuda$delta_dress_fit(...)}}{GPU-accelerated
        \code{\link{delta_dress_fit}}.  Same arguments and return value.}
}

CUDA support requires rebuilding the package with \code{DRESS_CUDA=1}.
If CUDA is not available, calling either function raises an error.
}
\examples{
\dontrun{
  # CPU
  r1 <- dress_fit(4L, c(0L,1L,2L,2L), c(1L,2L,0L,3L))

  # CUDA -- same signature
  r2 <- cuda$dress_fit(4L, c(0L,1L,2L,2L), c(1L,2L,0L,3L))
}
}
\keyword{datasets}
