Skip to content

Commit

Permalink
A few samll fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niermann999 committed Dec 5, 2024
1 parent 0fb56ea commit e2a9a17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions math/eigen/include/algebra/math/impl/eigen_transform3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ struct transform3 {
/// @name Data objects
/// @{

Eigen::Transform<scalar_type, 3, Eigen::Affine> _data =
Eigen::Transform<scalar_type, 3, Eigen::Affine>::Identity();
Eigen::Transform<scalar_type, 3, Eigen::Affine> _data_inv =
Eigen::Transform<scalar_type, 3, Eigen::Affine>::Identity();
Eigen::Transform<scalar_type, 3, Eigen::Affine> _data;
Eigen::Transform<scalar_type, 3, Eigen::Affine> _data_inv;

/// @}

Expand All @@ -81,6 +79,8 @@ struct transform3 {
ALGEBRA_HOST_DEVICE
transform3(const vector3 &t, const vector3 &x, const vector3 &y,
const vector3 &z, bool get_inverse = true) {
_data.setIdentity();

auto &matrix = _data.matrix();
matrix.template block<3, 1>(0, 0) = x;
matrix.template block<3, 1>(0, 1) = y;
Expand Down
2 changes: 1 addition & 1 deletion storage/common/include/algebra/storage/matrix_getter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ALGEBRA_HOST_DEVICE constexpr void set_block(
if constexpr (ROWS == mROW &&
matrix_t::storage_rows() == input_matrix_t::storage_rows()) {
if (row == 0u) {
for (std::size_t j = col; j < mCOL; ++j) {
for (std::size_t j = col; j < col + COLS; ++j) {
m[j] = b[j - col];
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ struct block_getter {

ROOT::Math::SVector<scalar_t, SIZE> ret;

for (std::size_t irow = row; irow < row + SIZE; ++irow) {
ret[irow - row] = m[col][irow];
for (unsigned int irow = row; irow < row + SIZE; ++irow) {
ret[irow - row] = m(irow, col);
}

return ret;
Expand Down

0 comments on commit e2a9a17

Please sign in to comment.