\doxysection{src/include/serif/equations/arithmetic.hpp File Reference} \hypertarget{arithmetic_8hpp}{}\label{arithmetic_8hpp}\index{src/include/serif/equations/arithmetic.hpp@{src/include/serif/equations/arithmetic.hpp}} File containing the Equation\+Scale and Equation\+Sum templates, which allow for scaling and summing equations. {\ttfamily \#include $<$cmath$>$}\newline {\ttfamily \#include $<$concepts$>$}\newline {\ttfamily \#include $<$stdexcept$>$}\newline {\ttfamily \#include $<$string\+\_\+view$>$}\newline {\ttfamily \#include $<$tuple$>$}\newline {\ttfamily \#include $<$utility$>$}\newline {\ttfamily \#include "{}serif/equations/concepts.\+hpp"{}}\newline {\ttfamily \#include "{}serif/utils/error/errors.\+hpp"{}}\newline Include dependency graph for arithmetic.\+hpp\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{arithmetic_8hpp__incl} \end{center} \end{figure} This graph shows which files directly or indirectly include this file\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{arithmetic_8hpp__dep__incl} \end{center} \end{figure} \doxysubsubsection*{Classes} \begin{DoxyCompactItemize} \item class \mbox{\hyperlink{classserif_1_1equations_1_1_equation_scale}{serif\+::equations\+::\+Equation\+Scale$<$ Equation\+T $>$}} \begin{DoxyCompactList}\small\item\em Scale an equation by a constant coefficient. \end{DoxyCompactList}\item class \mbox{\hyperlink{classserif_1_1equations_1_1_equation_sum}{serif\+::equations\+::\+Equation\+Sum$<$ First\+T, Rest\+Ts $>$}} \begin{DoxyCompactList}\small\item\em Sum multiple equations together. \end{DoxyCompactList}\item class \mbox{\hyperlink{classserif_1_1equations_1_1_equation_difference}{serif\+::equations\+::\+Equation\+Difference$<$ Left\+T, Right\+T $>$}} \begin{DoxyCompactList}\small\item\em Subtract one equation from another. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsubsection*{Namespaces} \begin{DoxyCompactItemize} \item namespace \mbox{\hyperlink{namespaceserif}{serif}} \item namespace \mbox{\hyperlink{namespaceserif_1_1equations}{serif\+::equations}} \begin{DoxyCompactList}\small\item\em The equations namespace, intended to be, to the best of my design ability, where the vast majority of the actual physics lives. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} File containing the Equation\+Scale and Equation\+Sum templates, which allow for scaling and summing equations. \begin{DoxyAuthor}{Author} Emily M. Boudreaux \end{DoxyAuthor} The astute observer will notice that none of the code in this file or indeed in in any part of the equations module actually implements summation or scaled addition more generally. Rather, the code to manage that is implemented in the operator/backend/mfem module. Effectively these templates are compile time tags telling that system how to combine weak contributions. The reason for this comes down to we dont really want to sum at the point wise level; rather, we generally want to sum already integrated contributions. Since equations, by design, do not know any details about the global system they are unable to manage this themselves. There is another, as yet unexplored case, where we introduce some point-\/wise summation equation. This could be implemented in a much more local fashion and would probably be easier to trace; however, it would be semantically different in its meaning.