mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Removed unneeded stuff
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402268
This commit is contained in:
parent
f79434b5d8
commit
0a76da7909
@ -292,7 +292,6 @@ namespace dlib
|
||||
|
||||
alpha = put_in_range(first,last,alpha);
|
||||
|
||||
alpha = (first+last)/2;
|
||||
|
||||
last_alpha = temp;
|
||||
}
|
||||
@ -315,7 +314,6 @@ namespace dlib
|
||||
// use interpolation to pick alpha between first and last
|
||||
alpha = a + (b-a)*poly_min_extrap(a_val, a_val_der, b_val, b_val_der);
|
||||
alpha = put_in_range(first,last,alpha);
|
||||
//alpha = (first+last)/2;
|
||||
|
||||
const double val = f(alpha);
|
||||
const double val_der = der(alpha);
|
||||
|
Loading…
Reference in New Issue
Block a user