Get the current rkeops
options in R
global options scope
Source: R/rkeops_options.R
get_rkeops_options.Rd
rkeops
user-defined operators requires specific options to control
their behavior at runtime (precision, verbosity, use of GPU, debug flag).
Their current values can be printed with get_rkeops_options()
. See
def_rkeops_options()
for more details about these options.
Arguments
- option
string character or vector of string character, specific option name(s) among
"backend"
,"device_id"
,"precision"
,"verbosity"
,"debug"
to get the corresponding option current values. Default isNULL
and all option values are returned.
Value
a scalar value if only one option was specified or a list with
specified rkeops
current options values.
Examples
set_rkeops_options()
get_rkeops_options()
#> $backend
#> [1] "CPU"
#>
#> $device_id
#> [1] -1
#>
#> $precision
#> [1] "float32"
#>
#> $verbosity
#> [1] 0
#>
#> $debug
#> [1] 0
#>
#> attr(,"class")
#> [1] "rkeops_options"
get_rkeops_options("backend")
#> [1] "CPU"
get_rkeops_options(c("backend", "precision"))
#> $backend
#> [1] "CPU"
#>
#> $precision
#> [1] "float32"
#>