Skip to content

Commit 9486d9e

Browse files
chore: replace postfix increment and decrement operators with their prefix equivalents
1 parent 2031067 commit 9486d9e

31 files changed

+41
-41
lines changed

cpp/examples/forward_backward/inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int main(int argc, char const **argv) {
8080
SOPT_HIGH_LOG("Create dirty vector");
8181
std::normal_distribution<> gaussian_dist(0, sigma);
8282
Vector y(y0.size());
83-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
83+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8484
// Write dirty imagte to file
8585
if (output != "none") {
8686
Vector const dirty = sampling.adjoint() * y;

cpp/examples/forward_backward/inpainting_credible_interval.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main(int argc, char const **argv) {
8282
SOPT_HIGH_LOG("Create dirty vector");
8383
std::normal_distribution<> gaussian_dist(0, sigma);
8484
Vector y(y0.size());
85-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
85+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8686
// Write dirty imagte to file
8787
if (output != "none") {
8888
Vector const dirty = sampling.adjoint() * y;

cpp/examples/forward_backward/inpainting_joint_map.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int main(int argc, char const **argv) {
8181
SOPT_HIGH_LOG("Create dirty vector");
8282
std::normal_distribution<> gaussian_dist(0, sigma);
8383
Vector y(y0.size());
84-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
84+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8585
// Write dirty imagte to file
8686
if (output != "none") {
8787
Vector const dirty = sampling.adjoint() * y;

cpp/examples/forward_backward/l2_inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main(int argc, char const **argv) {
7878
SOPT_HIGH_LOG("Create dirty vector");
7979
std::normal_distribution<> gaussian_dist(0, sigma);
8080
Vector y(y0.size());
81-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
81+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8282
// Write dirty imagte to file
8383
if (output != "none") {
8484
Vector const dirty = sampling.adjoint() * y;

cpp/examples/primal_dual/inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int main(int argc, char const **argv) {
8989
SOPT_HIGH_LOG("Create dirty vector");
9090
std::normal_distribution<> gaussian_dist(0, sigma);
9191
Vector y(y0.size());
92-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
92+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
9393
// Write dirty image to file
9494
if (output != "none") {
9595
Vector const dirty = sampling.adjoint() * y;

cpp/examples/primal_dual/tv_inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main(int argc, char const **argv) {
8282
SOPT_HIGH_LOG("Create dirty vector");
8383
std::normal_distribution<> gaussian_dist(0, sigma);
8484
Vector y(y0.size());
85-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
85+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8686
// Write dirty image to file
8787
if (output != "none") {
8888
Vector const dirty = sampling.adjoint() * y;

cpp/examples/proximal_admm/inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int main(int argc, char const **argv) {
7575
SOPT_HIGH_LOG("Create dirty vector");
7676
std::normal_distribution<> gaussian_dist(0, sigma);
7777
Vector y(y0.size());
78-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
78+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
7979
// Write dirty imagte to file
8080
if (output != "none") {
8181
Vector const dirty = sampling.adjoint() * y;

cpp/examples/proximal_admm/reweighted.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int main(int argc, char const **argv) {
7979
SOPT_MEDIUM_LOG("Create dirty vector");
8080
std::normal_distribution<> gaussian_dist(0, sigma);
8181
Vector y(y0.size());
82-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
82+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8383
// Write dirty imagte to file
8484
if (output != "none") {
8585
Vector const dirty = sampling.adjoint() * y;

cpp/examples/sdmm/inpainting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int main(int argc, char const **argv) {
7474
SOPT_HIGH_LOG("Create dirty vector");
7575
std::normal_distribution<> gaussian_dist(0, sigma);
7676
Vector y(y0.size());
77-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
77+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
7878
// Write dirty imagte to file
7979
if (output != "none") {
8080
Vector const dirty = sampling.adjoint() * y;

cpp/examples/sdmm/reweighted.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main(int argc, char const **argv) {
7878
SOPT_HIGH_LOG("Create dirty vector");
7979
std::normal_distribution<> gaussian_dist(0, sigma);
8080
Vector y(y0.size());
81-
for (sopt::t_int i = 0; i < y0.size(); i++) y(i) = y0(i) + gaussian_dist(mersenne);
81+
for (sopt::t_int i = 0; i < y0.size(); ++i) y(i) = y0(i) + gaussian_dist(mersenne);
8282
// Write dirty imagte to file
8383
if (output != "none") {
8484
Vector const dirty = sampling.adjoint() * y;

0 commit comments

Comments
 (0)