--------------------------------------------------- lines 7-39 of file: example/atomic_four/dynamic.cpp --------------------------------------------------- {xrst_begin atomic_four_dynamic.cpp} Atomic Functions with Dynamic Parameters: Example and Test ########################################################## Purpose ******* This example demonstrates using dynamic parameters with an :ref:`atomic_four-name` function. Function ******** For this example, the atomic function :math:`g : \B{R}^3 \rightarrow \B{R}^3` is defined by :math:`g_0 (x) = x_0 * x_ 0`, :math:`g_1 (x) = x_0 * x_ 1`, :math:`g_2 (x) = x_1 * x_ 2`. Define Atomic Function ********************** {xrst_literal // BEGIN_DEFINE_ATOMIC_FUNCTION // END_DEFINE_ATOMIC_FUNCTION } Use Atomic Function ******************* {xrst_literal // BEGIN_USE_ATOMIC_FUNCTION // END_USE_ATOMIC_FUNCTION } {xrst_end atomic_four_dynamic.cpp}