Unverified Commit 53abaf5b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Preprocessor: new option “nocommutativity”

Ref. #1788
parent 2b4572af
......@@ -519,6 +519,15 @@ by the ``dynare`` command.
those in M-files. This is equivalent to the :opt:`use_dll` option of
the ``model`` block.
.. option:: nocommutativity
This option tells the preprocessor not to use the commutativity of
addition and multiplication when looking for common subexpressions. As a
consequence, when using this option, equations in various outputs
(LaTeX, JSON…) will appear as the user entered them (without terms or
factors swapped). Note that using this option may have a performance
impact on the preprocessing stage, though it is likely to be small.
These options can be passed to the preprocessor by listing them
after the name of the ``.mod`` file. They can alternatively be
defined in the first line of the ``.mod`` file, this avoids typing
......
Subproject commit 6aeef11bb23169e7691ae0b60e1a8b8ad9dc2dc1
Subproject commit c9c36c037aa6d6c67f8fbb2236b03729a22e5878
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment