numpoly.global_options

numpoly.global_options(**kwargs: Any)Iterator[Dict[str, Any]][source]

Temporarily set global numpoly options.

Args:
kwargs:

Collection of values that deviate from the defaults. See numpoly.set_options for details.

Yield:

Collection of values that affect the numpoly machinery. See numpoly.set_options for details.

Example:
>>> numpoly.get_options()["default_varname"]
'q'
>>> with numpoly.global_options(default_varname="X"):
...     print(numpoly.get_options()["default_varname"])
X
>>> numpoly.get_options()["default_varname"]
'q'
Note:

get_options, set_options