Skip to content

Commit 8bba3b3

Browse files
committed
Merge pull request #2988 from vrabaud:master
2 parents 457740f + bac6ee7 commit 8bba3b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/alphamat/src/cm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ void lle(my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, float ep
9090
Mat ptDotN(20, 1, DataType<float>::type), imd(20, 1, DataType<float>::type);
9191
Mat Cones(20, 1, DataType<float>::type), Cinv(20, 1, DataType<float>::type);
9292
float alpha, beta, lagrangeMult;
93-
Cones = 1;
93+
Cones.setTo(cv::Scalar::all(1));
9494

95-
C = 0;
95+
C.setTo(cv::Scalar::all(0));
9696
rhs = 1;
9797

9898
int i, ind = 0;

0 commit comments

Comments
 (0)