mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
LinearOperator::FooMultiply -> LinearOperator::FooMultiplyAndAccumulate
These methods were historically poorly named and every time I read code I get confused whether they are just multiplying or multiplying and adding. Clarifying them also gives us the changce to introduce RightMultiply and LeftMultiply methods in the base class which will simplify a number call sites in a subsequent CL. Fixes https://github.com/ceres-solver/ceres-solver/issues/855 Change-Id: Ice4fb483f1acd02527a6dd753ef0c5a66037f4b0
This commit is contained in:
@@ -72,7 +72,7 @@ class DynamicSparseNormalCholeskySolverTest : public ::testing::Test {
|
||||
|
||||
Vector rhs(A_->num_cols());
|
||||
rhs.setZero();
|
||||
A_->LeftMultiply(b_.get(), rhs.data());
|
||||
A_->LeftMultiplyAndAccumulate(b_.get(), rhs.data());
|
||||
Vector expected_solution = lhs.llt().solve(rhs);
|
||||
|
||||
std::unique_ptr<LinearSolver> solver(LinearSolver::Create(options));
|
||||
|
||||
Reference in New Issue
Block a user