Skip to content

Commit

Permalink
fix: Improve const-correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSchammo committed Jan 7, 2025
1 parent f9a93c4 commit 3996f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/transformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void apply_transformation(torch::Tensor points,
const torch::Tensor &transformation_matrix) {

// Extract x, y, z coordinates
auto coords = points.index({Slice(), Slice(), Slice(0, 3)});
const auto coords = points.index({Slice(), Slice(), Slice(0, 3)});

// apply transformation
const auto transformed_points =
Expand Down

0 comments on commit 3996f08

Please sign in to comment.