GeezerVison is showing github.com — refactoring · cppd/math@0ab7786
File treeExpand file treeCollapse file tree Open diff view settings renderer/test/ray_tracing
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/filter/core/ukf_transform.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -47,7 +47,7 @@ template <std::size_t N, typename T, std::size_t COUNT, typename NoiseCovariance | 47 | 47 | std::is_same_v<NoiseCovariance, numerical::Matrix<N, N, T>> | 48 | 48 | || std::is_same_v<NoiseCovariance, numerical::Vector<N, T>>); | 49 | 49 |
| 50 | | - const numerical::Vector<N, T> mean = [&]() | | 50 | + const numerical::Vector<N, T> mean = [&] | 51 | 51 | { | 52 | 52 | static_assert(COUNT > 0); | 53 | 53 | numerical::Vector<N, T> res = points[0] * wm[0]; | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/accelerators/tree.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -230,7 +230,7 @@ SpatialSubdivisionTree<Parallelotope>::SpatialSubdivisionTree(const Objects& obj | 230 | 230 | ThreadTasks<Task<Box>> tasks; | 231 | 231 | tasks.emplace(&boxes.front(), 1 /*depth*/); | 232 | 232 |
| 233 | | - const auto f = [&]() | | 233 | + const auto f = [&] | 234 | 234 | { | 235 | 235 | try | 236 | 236 | { | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/core/test/test_convex_hull.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -264,7 +264,7 @@ void test_convex_hull(progress::Ratio* const progress) | 264 | 264 | constexpr bool WRITE_LOG = true; | 265 | 265 | constexpr bool WRITE_INFO = true; | 266 | 266 |
| 267 | | - const int size = [&]() | | 267 | + const int size = [&] | 268 | 268 | { | 269 | 269 | PCG engine; | 270 | 270 | return std::uniform_int_distribution<int>(MIN_SIZE, MAX_SIZE)(engine); | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/reconstruction/test/test_reconstruction.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -287,7 +287,7 @@ void all_tests( | 287 | 287 | template <std::size_t N> | 288 | 288 | void test(const int low, const int high, progress::Ratio* const progress) | 289 | 289 | { | 290 | | - const int point_count = [&]() | | 290 | + const int point_count = [&] | 291 | 291 | { | 292 | 292 | PCG engine; | 293 | 293 | return std::uniform_int_distribution<int>(low, high)(engine); | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/shapes/test/test_sphere_simplex.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ void test_integrate(progress::Ratio* const progress, const double progress_min, | 55 | 55 |
| 56 | 56 | PCG engine; | 57 | 57 |
| 58 | | - const std::array<numerical::Vector<N, T>, N> simplex_vertices = [&]() | | 58 | + const std::array<numerical::Vector<N, T>, N> simplex_vertices = [&] | 59 | 59 | { | 60 | 60 | std::array<numerical::Vector<N, T>, N> res; | 61 | 61 | for (numerical::Vector<N, T>& v : res) | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/spatial/parallelotope_aa.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -354,7 +354,7 @@ std::array<ParallelotopeAA<N, T>, ParallelotopeAA<N, T>::DIVISIONS> Parallelotop | 354 | 354 | unsigned count = 0; | 355 | 355 | std::array<Planes, N> p; | 356 | 356 |
| 357 | | - const auto f = [&count, &res, &p]() | | 357 | + const auto f = [&count, &res, &p] | 358 | 358 | { | 359 | 359 | ASSERT(count < res.size()); | 360 | 360 | res[count++].planes_ = p; | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/spatial/parallelotope_edges.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -133,7 +133,7 @@ std::array<std::array<numerical::Vector<N, T>, 2>, parallelotope_edges_implement | 133 | 133 | numerical::Vector<N, T> p; | 134 | 134 | std::array<bool, N> dimensions; | 135 | 135 |
| 136 | | - const auto f = [&]() | | 136 | + const auto f = [&] | 137 | 137 | { | 138 | 138 | for (std::size_t i = 0; i < N; ++i) | 139 | 139 | { | |
Collapse file Copy file name to clipboardExpand all lines: src/geometry/spatial/random/parallelotope_points.h +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,7 +37,7 @@ std::vector<numerical::Vector<N, T>> parallelotope_external_points( | 37 | 37 | std::uniform_real_distribution<T> high_urd(1.01, 10); | 38 | 38 | std::bernoulli_distribution bd(0.5); | 39 | 39 |
| 40 | | - const auto random_point = [&]() | | 40 | + const auto random_point = [&] | 41 | 41 | { | 42 | 42 | numerical::Vector<N, T> res = org; | 43 | 43 | for (std::size_t i = 0; i < N; ++i) | @@ -68,7 +68,7 @@ std::vector<numerical::Vector<N, T>> parallelotope_external_points( | 68 | 68 | std::uniform_real_distribution<T> high_urd(1.01, 10); | 69 | 69 | std::bernoulli_distribution bd(0.5); | 70 | 70 |
| 71 | | - const auto random_point = [&]() | | 71 | + const auto random_point = [&] | 72 | 72 | { | 73 | 73 | numerical::Vector<N, T> res = org; | 74 | 74 | for (std::size_t i = 0; i < N; ++i) | @@ -97,7 +97,7 @@ std::vector<numerical::Vector<N, T>> parallelotope_internal_points( | 97 | 97 | { | 98 | 98 | std::uniform_real_distribution<T> urd(0.01, 0.99); | 99 | 99 |
| 100 | | - const auto random_point = [&]() | | 100 | + const auto random_point = [&] | 101 | 101 | { | 102 | 102 | numerical::Vector<N, T> res = org; | 103 | 103 | for (std::size_t i = 0; i < N; ++i) | @@ -125,7 +125,7 @@ std::vector<numerical::Vector<N, T>> parallelotope_internal_points( | 125 | 125 | { | 126 | 126 | std::uniform_real_distribution<T> urd(0.01, 0.99); | 127 | 127 |
| 128 | | - const auto random_point = [&]() | | 128 | + const auto random_point = [&] | 129 | 129 | { | 130 | 130 | numerical::Vector<N, T> res = org; | 131 | 131 | for (std::size_t i = 0; i < N; ++i) | @@ -154,7 +154,7 @@ std::vector<numerical::Vector<N, T>> parallelotope_cover_points( | 154 | 154 | std::uniform_real_distribution<T> cover_urd(-0.2, 1.2); | 155 | 155 | std::uniform_real_distribution<T> len_urd(0, 1); | 156 | 156 |
| 157 | | - const auto cover_point = [&]() | | 157 | + const auto cover_point = [&] | 158 | 158 | { | 159 | 159 | numerical::Vector<N, T> res = org; | 160 | 160 | for (std::size_t i = 0; i < N; ++i) | |
Collapse file Copy file name to clipboardExpand all lines: src/gpu/dft/compute.cpp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -241,7 +241,7 @@ class DftVector final : public ComputeVector | 241 | 241 | { | 242 | 242 | const VkCommandBuffer command_buffer = (*command_buffers_)[index]; | 243 | 243 |
| 244 | | - const auto commands = [&]() | | 244 | + const auto commands = [&] | 245 | 245 | { | 246 | 246 | const bool inverse = (index == DftType::INVERSE); | 247 | 247 | dft_->compute_commands(command_buffer, inverse); | |
Collapse file Copy file name to clipboardExpand all lines: src/gpu/optical_flow/compute.cpp +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -137,7 +137,7 @@ class Impl final : public Compute | 137 | 137 |
| 138 | 138 | const VkCommandBuffer command_buffer = *command_buffer_first_pyramid_; | 139 | 139 |
| 140 | | - const auto commands = [&]() | | 140 | + const auto commands = [&] | 141 | 141 | { | 142 | 142 | program_image_pyramid_.commands(images_, 0, command_buffer); | 143 | 143 | }; | @@ -154,7 +154,7 @@ class Impl final : public Compute | 154 | 154 | { | 155 | 155 | const VkCommandBuffer command_buffer = (*command_buffers_)[index]; | 156 | 156 |
| 157 | | - const auto commands = [&]() | | 157 | + const auto commands = [&] | 158 | 158 | { | 159 | 159 | // i — previous image, 1-i — current image | 160 | 160 | program_image_pyramid_.commands(images_, 1 - index, command_buffer); | |
|