ReactionRate.hpp
73 template<typename T, Requires<isNumeric<T>> = true> auto operator+=(T const& scalar) -> ReactionRate& { m_value += scalar; return *this; }
74 template<typename T, Requires<isNumeric<T>> = true> auto operator-=(T const& scalar) -> ReactionRate& { m_value -= scalar; return *this; }
75 template<typename T, Requires<isNumeric<T>> = true> auto operator*=(T const& scalar) -> ReactionRate& { m_value *= scalar; return *this; }
76 template<typename T, Requires<isNumeric<T>> = true> auto operator/=(T const& scalar) -> ReactionRate& { m_value /= scalar; return *this; }
89 template<typename T, Requires<isNumeric<T>> = true> auto operator+(ReactionRate rate, T const& scalar) { return rate += scalar; }
90 template<typename T, Requires<isNumeric<T>> = true> auto operator-(ReactionRate rate, T const& scalar) { return rate -= scalar; }
91 template<typename T, Requires<isNumeric<T>> = true> auto operator*(ReactionRate rate, T const& scalar) { return rate *= scalar; }
92 template<typename T, Requires<isNumeric<T>> = true> auto operator/(ReactionRate rate, T const& scalar) { return rate /= scalar; }
94 template<typename T, Requires<isNumeric<T>> = true> auto operator+(T const& scalar, ReactionRate rate) { return rate += scalar; }
95 template<typename T, Requires<isNumeric<T>> = true> auto operator-(T const& scalar, ReactionRate rate) { return rate -= scalar; }
96 template<typename T, Requires<isNumeric<T>> = true> auto operator*(T const& scalar, ReactionRate rate) { return rate *= scalar; }
97 template<typename T, Requires<isNumeric<T>> = true> auto operator/(T const& scalar, ReactionRate rate) { return rate /= scalar; }
The result of a reaction rate model evaluation.
Definition: ReactionRate.hpp:28
ReactionRate(T const &value)
Construct a ReactionRate object with given rate value.
Definition: ReactionRate.hpp:36
auto operator=(T const &value) -> ReactionRate &
Assign a value to this ReactionRate object.
Definition: ReactionRate.hpp:67
static auto enforce(real const &value) -> ReactionRate
Return a ReactionRate object that represents the residual of an enforced equation f(props) = 0 instea...
Definition: ReactionRate.hpp:40
auto onEquationMode() const -> bool
Return true if this ReactionRate object is in equation mode enabled by enforce.
Definition: ReactionRate.hpp:54
ReactionRate()
Construct a default ReactionRate object.
Definition: ReactionRate.hpp:31
auto value() const -> real const &
Return the underlying real object in the ReactionRate object.
Definition: ReactionRate.hpp:48
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto operator/(const Eigen::MatrixBase< DerivedLHS > &lhs, const Eigen::MatrixBase< DerivedRHS > &rhs) -> decltype(lhs.cwiseQuotient(rhs))
Return the component-wise division of two matrices.
Definition: Matrix.hpp:762
auto operator-(const typename Derived::Scalar &scalar, const Eigen::MatrixBase< Derived > &mat) -> decltype((scalar - mat.array()).matrix())
Return the component-wise division of two matrices.
Definition: Matrix.hpp:786
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
auto operator+(const typename Derived::Scalar &scalar, const Eigen::MatrixBase< Derived > &mat) -> decltype((scalar+mat.array()).matrix())
Return the component-wise division of two matrices.
Definition: Matrix.hpp:774