Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
StollD committed Apr 19, 2023
1 parent c2fdf06 commit c7e7dd0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/contacts/detection/algorithms/gaussian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ bool ge_solve(Matrix6<T> a, Vector6<T> b, Vector6<T> &x)
for (Eigen::Index i = c; i < 6; ++i)
std::swap(a(i, r), a(i, c)); // swap A[r, :] and A[c, :]

std::swap(b[r], b[c]); // swap b[r] and b[c]
std::swap(b[r], b[c]); // swap b[r] and b[c]
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline void run_3x3(const DenseBase<DerivedData> &in,
v += d(i, 0, 0) * k(0, -1); // extended
v += d(i, 1, 0) * k(1, -1); // extended

v += d(i, 0, 0) * k(-1, 0); // extended
v += d(i, 0, 0) * k(-1, 0); // extended
v += d(i, 0, 0) * k(0, 0);
v += d(i, 1, 0) * k(1, 0);

Expand Down Expand Up @@ -226,7 +226,7 @@ inline void run_3x3(const DenseBase<DerivedData> &in,

v += d(i, -1, 0) * k(-1, 0);
v += d(i, 0, 0) * k(0, 0);
v += d(i, 0, 0) * k(1, 0); // extended
v += d(i, 0, 0) * k(1, 0); // extended

v += d(i, -1, 0) * k(-1, 1); // extended
v += d(i, 0, 0) * k(0, 1); // extended
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, 1, 0) * k(1, -1); // extended
v += d(i, 2, 0) * k(2, -1); // extended

v += d(i, 0, 0) * k(-2, 0); // extended
v += d(i, 0, 0) * k(-1, 0); // extended
v += d(i, 0, 0) * k(-2, 0); // extended
v += d(i, 0, 0) * k(-1, 0); // extended
v += d(i, 0, 0) * k(0, 0);
v += d(i, 1, 0) * k(1, 0);
v += d(i, 2, 0) * k(2, 0);
Expand Down Expand Up @@ -108,7 +108,7 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, 1, 0) * k(1, -1); // extended
v += d(i, 2, 0) * k(2, -1); // extended

v += d(i, -1, 0) * k(-2, 0); // extended
v += d(i, -1, 0) * k(-2, 0); // extended
v += d(i, -1, 0) * k(-1, 0);
v += d(i, 0, 0) * k(0, 0);
v += d(i, 1, 0) * k(1, 0);
Expand Down Expand Up @@ -760,7 +760,7 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, -1, 1) * k(-1, 1);
v += d(i, 0, 1) * k(0, 1);
v += d(i, 1, 1) * k(1, 1);
v += d(i, 1, 1) * k(2, 1); // extended
v += d(i, 1, 1) * k(2, 1); // extended

v += d(i, -2, 1) * k(-2, 2); // extended
v += d(i, -1, 1) * k(-1, 2); // extended
Expand Down Expand Up @@ -796,8 +796,8 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, -2, 1) * k(-2, 1);
v += d(i, -1, 1) * k(-1, 1);
v += d(i, 0, 1) * k(0, 1);
v += d(i, 0, 1) * k(1, 1); // extended
v += d(i, 0, 1) * k(2, 1); // extended
v += d(i, 0, 1) * k(1, 1); // extended
v += d(i, 0, 1) * k(2, 1); // extended

v += d(i, -2, 1) * k(-2, 2); // extended
v += d(i, -1, 1) * k(-1, 2); // extended
Expand Down Expand Up @@ -943,7 +943,7 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, -1, 0) * k(-1, 0);
v += d(i, 0, 0) * k(0, 0);
v += d(i, 1, 0) * k(1, 0);
v += d(i, 1, 0) * k(2, 0); // extended
v += d(i, 1, 0) * k(2, 0); // extended

v += d(i, -2, 0) * k(-2, 1); // extended
v += d(i, -1, 0) * k(-1, 1); // extended
Expand Down Expand Up @@ -979,8 +979,8 @@ void run_5x5(const DenseBase<DerivedData> &in,
v += d(i, -2, 0) * k(-2, 0);
v += d(i, -1, 0) * k(-1, 0);
v += d(i, 0, 0) * k(0, 0);
v += d(i, 0, 0) * k(1, 0); // extended
v += d(i, 0, 0) * k(2, 0); // extended
v += d(i, 0, 0) * k(1, 0); // extended
v += d(i, 0, 0) * k(2, 0); // extended

v += d(i, -2, 0) * k(-2, 1); // extended
v += d(i, -1, 0) * k(-1, 1); // extended
Expand Down
2 changes: 1 addition & 1 deletion src/ipts/protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct [[gnu::packed]] ipts_pen_dft_window {
u32 timestamp; // counting at approx 8MHz
u8 num_rows;
u8 seq_num;
u8 reserved[3]; // NOLINT(modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays)
u8 reserved[3]; // NOLINT(modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays)
u8 data_type;
u8 reserved2[2]; // NOLINT(modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays)
};
Expand Down

0 comments on commit c7e7dd0

Please sign in to comment.