remove printfs, they are of no use and may prevent compilation

This commit is contained in:
Thomas Capricelli 2009-08-26 01:09:23 +02:00
parent a1e9e8d082
commit c1be96967e
2 changed files with 5 additions and 15 deletions

View File

@ -114,10 +114,8 @@ HybridNonLinearSolver<FunctorType,Scalar>::solve(
Parameters parameters;
/* check the input parameters for errors. */
if (n <= 0 || tol < 0.) {
printf("HybridNonLinearSolver::solve() bad args : n,tol,...");
if (n <= 0 || tol < 0.)
return ImproperInputParameters;
}
parameters.maxfev = 100*(n+1);
parameters.xtol = tol;
@ -429,10 +427,8 @@ HybridNonLinearSolver<FunctorType,Scalar>::solveNumericalDiff(
Parameters parameters;
/* check the input parameters for errors. */
if (n <= 0 || tol < 0.) {
printf("HybridNonLinearSolver::solve() bad args : n,tol,...");
if (n <= 0 || tol < 0.)
return ImproperInputParameters;
}
parameters.maxfev = 200*(n+1);
parameters.xtol = tol;

View File

@ -133,10 +133,8 @@ LevenbergMarquardt<FunctorType,Scalar>::minimize(
Parameters parameters;
/* check the input parameters for errors. */
if (n <= 0 || m < n || tol < 0.) {
printf("LevenbergMarquardt::minimize() bad args : m,n,tol,...");
if (n <= 0 || m < n || tol < 0.)
return ImproperInputParameters;
}
parameters.ftol = tol;
parameters.xtol = tol;
@ -420,10 +418,8 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeNumericalDiff(
Parameters parameters;
/* check the input parameters for errors. */
if (n <= 0 || m < n || tol < 0.) {
printf("ei_lmder1 bad args : m,n,tol,...");
if (n <= 0 || m < n || tol < 0.)
return ImproperInputParameters;
}
parameters.ftol = tol;
parameters.xtol = tol;
@ -708,10 +704,8 @@ LevenbergMarquardt<FunctorType,Scalar>::minimizeOptimumStorage(
Parameters parameters;
/* check the input parameters for errors. */
if (n <= 0 || m < n || tol < 0.) {
printf("LevenbergMarquardtOptimumStorage::minimize() bad args : m,n,tol,...");
if (n <= 0 || m < n || tol < 0.)
return ImproperInputParameters;
}
parameters.ftol = tol;
parameters.xtol = tol;