assert_has_double: Does device have 'double' support?

View source: R/asserts.R

assert_has_doubleR Documentation

Does device have 'double' support?

Description

Function to query if device (identified by index) supports double precision

Usage

assert_has_double(
  device_idx,
  context_idx,
  severity = getOption("assertive.severity", "stop")
)

Arguments

device_idx

An integer indicating which device to query

context_idx

An integer indicating which context to query

severity

How severe should the consequences of the assertion be?

Value

Returns nothing but throws an error if device does not support double precision

Author(s)

Charles Determan Jr.

See Also

deviceHasDouble


gpuR documentation built on May 29, 2024, 11:56 a.m.