Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e9b432b1
Commit
e9b432b1
authored
Jul 11, 2013
by
Alex Leontiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the warnings
Fixed all of the warnings.
parent
6c9ae110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lpsolver.cpp
modules/optim/src/lpsolver.cpp
+2
-3
No files found.
modules/optim/src/lpsolver.cpp
View file @
e9b432b1
...
...
@@ -204,7 +204,8 @@ static int initialize_simplex(Mat_<double>& c, Mat_<double>& b,double& v,vector<
static
int
inner_simplex
(
Mat_
<
double
>&
c
,
Mat_
<
double
>&
b
,
double
&
v
,
vector
<
int
>&
N
,
vector
<
int
>&
B
){
int
count
=
0
;
while
(
1
){
dprintf
((
"iteration #%d
\n
"
,
count
++
));
dprintf
((
"iteration #%d
\n
"
,
count
));
count
++
;
static
MatIterator_
<
double
>
pos_ptr
;
int
e
=-
1
,
pos_ctr
=
0
,
min_var
=
INT_MAX
;
...
...
@@ -234,7 +235,6 @@ static int inner_simplex(Mat_<double>& c, Mat_<double>& b,double& v,vector<int>&
min_var
=
INT_MAX
;
double
min
=
DBL_MAX
;
int
row_it
=
0
;
double
ite
=
0
;
MatIterator_
<
double
>
min_row_ptr
=
b
.
begin
();
for
(
MatIterator_
<
double
>
it
=
b
.
begin
();
it
!=
b
.
end
();
it
+=
b
.
cols
,
row_it
++
){
double
myite
=
0
;
...
...
@@ -244,7 +244,6 @@ static int inner_simplex(Mat_<double>& c, Mat_<double>& b,double& v,vector<int>&
if
(
val
<
min
||
(
val
==
min
&&
B
[
row_it
]
<
min_var
)){
min_var
=
B
[
row_it
];
min_row_ptr
=
it
;
ite
=
myite
;
min
=
val
;
l
=
row_it
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment