Skip to contents

Sets the dispatch policy applied to new aMatrix objects that do not specify their own policy. The change affects all subsequent matrix constructions in the current session.

Usage

amatrix_set_default_policy(policy)

Arguments

policy

Character string. Must be one of "auto", "cpu", "mlx", "metal", "arrayfire", or "opencl".

Value

Invisibly, policy.

Examples

old <- amatrix_default_policy()
amatrix_set_default_policy("auto")
amatrix_set_default_policy(old) # restore