MCPcopy Create free account
hub / github.com/ceres-solver/ceres-solver / ToString

Method ToString

internal/ceres/program.cc:552–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552std::string Program::ToString() const {
553 std::string ret = "Program dump\n";
554 ret += StringPrintf("Number of parameter blocks: %d\n", NumParameterBlocks());
555 ret += StringPrintf("Number of parameters: %d\n", NumParameters());
556 ret += "Parameters:\n";
557 for (int i = 0; i < parameter_blocks_.size(); ++i) {
558 ret +=
559 StringPrintf("%d: %s\n", i, parameter_blocks_[i]->ToString().c_str());
560 }
561 return ret;
562}
563
564} // namespace ceres::internal

Callers 3

DeleteBlockInVectorMethod · 0.80
IsValidMethod · 0.80
CreateJacobianMethod · 0.80

Calls 4

StringPrintfFunction · 0.85
NumParameterBlocksFunction · 0.85
NumParametersFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected