tests/stats-gpu.r

suppressMessages(library(stats)) # for prcomp()
suppressMessages(library(fmlr))

if (fml_gpu()){
  m = 3
  n = 2
  c = card()
  x = gpumat(c, m, n)
  x$fill_linspace(1, m*n)
  xr = x$to_robj()
  
  s = gpuvec(c)
  
  source("internals/common.r")
  source("internals/stats.r")
} # end if (fml_gpu())
wrathematics/fmlr documentation built on Jan. 17, 2022, 4:10 p.m.