mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Problem::Evaluate implementation.
1. Add Problem::Evaluate and tests. 2. Remove Solver::Summary::initial/final_* 3. Remove Solver::Options::return_* members. 4. Various cpplint cleanups. Change-Id: I4266de53489896f72d9c6798c5efde6748d68a47
This commit is contained in:
committed by
Gerrit Code Review
parent
d4a0bf86d6
commit
509f68cfe3
@@ -734,7 +734,7 @@ bool DumpLinearLeastSquaresProblemToTextFile(const string& directory,
|
||||
}
|
||||
|
||||
bool DumpLinearLeastSquaresProblem(const string& directory,
|
||||
int iteration,
|
||||
int iteration,
|
||||
DumpFormatType dump_format_type,
|
||||
const SparseMatrix* A,
|
||||
const double* D,
|
||||
@@ -742,18 +742,18 @@ bool DumpLinearLeastSquaresProblem(const string& directory,
|
||||
const double* x,
|
||||
int num_eliminate_blocks) {
|
||||
switch (dump_format_type) {
|
||||
case (CONSOLE):
|
||||
case CONSOLE:
|
||||
return DumpLinearLeastSquaresProblemToConsole(directory,
|
||||
iteration,
|
||||
A, D, b, x,
|
||||
num_eliminate_blocks);
|
||||
case (PROTOBUF):
|
||||
case PROTOBUF:
|
||||
return DumpLinearLeastSquaresProblemToProtocolBuffer(
|
||||
directory,
|
||||
iteration,
|
||||
A, D, b, x,
|
||||
num_eliminate_blocks);
|
||||
case (TEXTFILE):
|
||||
case TEXTFILE:
|
||||
return DumpLinearLeastSquaresProblemToTextFile(directory,
|
||||
iteration,
|
||||
A, D, b, x,
|
||||
|
||||
Reference in New Issue
Block a user