|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
Subtract one equation from another. More...
#include <arithmetic.hpp>
Public Types | |
| using | Test = typename LeftT::Test |
| The test type of the difference equation is the same as the test type of the left equation. | |
Public Member Functions | |
| EquationDifference (LeftT left, RightT right) | |
| Construct a difference equation. | |
| const auto & | contributions () const noexcept |
| Return the contributions of the difference equation. | |
Static Public Attributes | |
| static constexpr std::string_view | name = "equation difference" |
| Compile time name for the difference equation, used for debugging and logging. | |
Private Attributes | |
| EquationSum< LeftT, EquationScale< RightT > > | m_equation |
| The equation representing the difference, which is a sum of the left equation and the scaled right equation (scaled by -1). | |
Subtract one equation from another.
This class is a compile-time tag that indicates that the weak contributions from the right equation should be subtracted from the weak contributions of the left equation. The actual subtraction is performed by the backend. A simple example would be if the left equation has a weak contribution of 1 and the right equation has a weak contribution of 2, then the final residual would be -1.
| Requirements |
|---|
|
| Equation Contributions |
|---|
|
| LeftT | The left equation type to subtract from. |
| RightT | The right equation type to subtract. |
| using serif::equations::EquationDifference< LeftT, RightT >::Test = typename LeftT::Test |
The test type of the difference equation is the same as the test type of the left equation.
|
inlineexplicit |
Construct a difference equation.
| left | The left equation to subtract from. |
| right | The right equation to subtract. |
|
inlinenodiscardnoexcept |
Return the contributions of the difference equation.
|
private |
The equation representing the difference, which is a sum of the left equation and the scaled right equation (scaled by -1).
|
staticconstexpr |
Compile time name for the difference equation, used for debugging and logging.