Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 23, 2024
1 parent 98053d5 commit cb3ef86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion numerics/polynomial_in_monomial_basis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ class PolynomialInMonomialBasis : public Polynomial<Value_, Argument_> {
// The constant term of the result is zero.
PolynomialInMonomialBasis<Primitive<Value, Argument>,
Argument, degree_ + 1, Evaluator>
Primitive() const requires additive_group<Value>;
Primitive() const
requires additive_group<Value>;

quantities::_named_quantities::Primitive<Value, Argument> Integrate(
Argument const& argument1,
Expand Down
12 changes: 7 additions & 5 deletions numerics/polynomial_in_monomial_basis_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,9 @@ template<typename Value_, typename Argument_, int degree_,
template<typename, typename, int> typename Evaluator>
PolynomialInMonomialBasis<Primitive<Value_, Argument_>, Argument_,
degree_ + 1, Evaluator>
PolynomialInMonomialBasis<Value_, Argument_, degree_, Evaluator>::Primitive()
const requires additive_group<Value> {
PolynomialInMonomialBasis<Value_, Argument_, degree_, Evaluator>::
Primitive() const
requires additive_group<Value> {
return PolynomialInMonomialBasis<
quantities::_named_quantities::Primitive<Value, Argument>,
Argument,
Expand All @@ -448,9 +449,10 @@ PolynomialInMonomialBasis<Value_, Argument_, degree_, Evaluator>::Primitive()
template<typename Value_, typename Argument_, int degree_,
template<typename, typename, int> typename Evaluator>
Primitive<Value_, Argument_>
PolynomialInMonomialBasis<Value_, Argument_, degree_, Evaluator>::Integrate(
Argument const& argument1,
Argument const& argument2) const requires additive_group<Value> {
PolynomialInMonomialBasis<Value_, Argument_, degree_, Evaluator>::
Integrate(Argument const& argument1,
Argument const& argument2) const
requires additive_group<Value> {
// + 2 is to take into account the truncation resulting from integer division.
return _quadrature::GaussLegendre<(degree_ + 2) / 2>(*this,
argument1, argument2);
Expand Down

0 comments on commit cb3ef86

Please sign in to comment.