ugly fixes for bug in Clang 3.1 on Mac relating to ambiguous = operator when assigning to vector segment in templated function.
https://dev.lsstcorp.org/trac/ticket/1907 http://llvm.org/bugs/show_bug.cgi?id=13103release/4.3a0
parent
14fef517d8
commit
c0b753a7e8
|
|
@ -77,8 +77,9 @@ namespace gtsam
|
|||
xS.resize(dim);
|
||||
DenseIndex vectorPos = 0;
|
||||
BOOST_FOREACH(const VectorValues::const_iterator& parentPointer, parentPointers) {
|
||||
xS.segment(vectorPos, parentPointer->second.size()) = parentPointer->second;
|
||||
vectorPos += parentPointer->second.size();
|
||||
const Vector& parentVector = parentPointer->second;
|
||||
xS.block(vectorPos,0,parentVector.size(),1) = parentVector.block(0,0,parentVector.size(),1);
|
||||
vectorPos += parentVector.size();
|
||||
}
|
||||
}
|
||||
xS = c.getb() - c.get_S() * xS;
|
||||
|
|
|
|||
|
|
@ -183,8 +183,9 @@ bool optimizeWildfireNode(const boost::shared_ptr<CLIQUE>& clique, double thresh
|
|||
xS.resize(dim);
|
||||
DenseIndex vectorPos = 0;
|
||||
BOOST_FOREACH(const VectorValues::const_iterator& parentPointer, parentPointers) {
|
||||
xS.segment(vectorPos, parentPointer->second.size()) = parentPointer->second;
|
||||
vectorPos += parentPointer->second.size();
|
||||
const Vector& parentVector = parentPointer->second;
|
||||
xS.block(vectorPos,0,parentVector.size(),1) = parentVector.block(0,0,parentVector.size(),1);
|
||||
vectorPos += parentVector.size();
|
||||
}
|
||||
}
|
||||
xS = c.getb() - c.get_S() * xS;
|
||||
|
|
|
|||
Loading…
Reference in New Issue