Skip to contents

Sets the precision mode applied to new aMatrix objects that do not specify their own precision. Use "strict" for reproducible double-precision results and "fast" for maximum GPU throughput with single/mixed precision.

Usage

amatrix_set_default_precision(precision)

Arguments

precision

Character string. Must be one of "strict" or "fast".

Value

Invisibly, precision.

Examples

old <- amatrix_default_precision()
amatrix_set_default_precision("strict")
amatrix_set_default_precision(old) # restore