Skip to content

Commit

Permalink
Formatting/linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stewart Martin-Haugh committed Feb 11, 2025
1 parent 0b0388e commit 1e8d0ed
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions benchmarks/common/covfie/benchmark/lorentz.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
#include <covfie/benchmark/propagate.hpp>
#include <covfie/benchmark/types.hpp>
#include <covfie/core/definitions.hpp>
#include <covfie/core/qualifiers.hpp>
#include <covfie/core/field_view.hpp>

#include <covfie/core/qualifiers.hpp>

template <typename propagator_t, typename backend_t>
COVFIE_HOST_DEVICE inline __attribute__((always_inline)) void lorentz_step(
Expand Down
6 changes: 4 additions & 2 deletions lib/core/covfie/core/algebra/affine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ struct affine : public matrix<N, N + 1, T, I> {
{
}

COVFIE_HOST_DEVICE vector<N, T, I> operator*(const vector<N, T, I> & v) const
COVFIE_HOST_DEVICE vector<N, T, I> operator*(const vector<N, T, I> & v
) const
{
vector<N + 1, T, I> r;

Expand All @@ -40,7 +41,8 @@ struct affine : public matrix<N, N + 1, T, I> {
return matrix<N, N + 1, T, I>::operator*(r);
}

COVFIE_HOST_DEVICE affine<N, T, I> operator*(const affine<N, T, I> & m) const
COVFIE_HOST_DEVICE affine<N, T, I> operator*(const affine<N, T, I> & m
) const
{
matrix<N + 1, N + 1, T, I> m1, m2;

Expand Down
7 changes: 4 additions & 3 deletions lib/core/covfie/core/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ requires(_size > 0) struct array {
return m_data[n];
}

COVFIE_HOST_DEVICE constexpr const scalar_t & at(const std::size_t & n) const
COVFIE_HOST_DEVICE constexpr const scalar_t & at(const std::size_t & n
) const
{
assert(n < dimensions);

Expand All @@ -59,8 +60,8 @@ requires(_size > 0) struct array {
return m_data[n];
}

COVFIE_HOST_DEVICE constexpr const scalar_t & operator[](const std::size_t & n
) const
COVFIE_HOST_DEVICE constexpr const scalar_t &
operator[](const std::size_t & n) const
{
assert(n < dimensions);

Expand Down
4 changes: 2 additions & 2 deletions lib/core/covfie/core/backend/transformer/hilbert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ struct hilbert {
{
}

COVFIE_HOST_DEVICE typename covariant_output_t::vector_t at(coordinate_t c
) const
COVFIE_HOST_DEVICE typename covariant_output_t::vector_t
at(coordinate_t c) const
{
#ifndef NDEBUG
for (std::size_t i = 0; i < contravariant_input_t::dimensions; ++i)
Expand Down
4 changes: 2 additions & 2 deletions lib/core/covfie/core/backend/transformer/strided.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ struct strided {
{
}

COVFIE_HOST_DEVICE typename covariant_output_t::vector_t at(coordinate_t c
) const
COVFIE_HOST_DEVICE typename covariant_output_t::vector_t
at(coordinate_t c) const
{
typename contravariant_input_t::scalar_t idx = 0;

Expand Down

0 comments on commit 1e8d0ed

Please sign in to comment.