inlined a fully specialized function template defined in a .hpp
parent
a94835a2e4
commit
bd3f9db7df
|
@ -98,11 +98,16 @@ struct CallRecord {
|
|||
template<int ROWS, int COLS>
|
||||
void handleLeafCase(const Eigen::Matrix<double, ROWS, COLS>& dTdA,
|
||||
JacobianMap& jacobians, Key key) {
|
||||
// if (ROWS == -1 && COLS == -1 ) {
|
||||
// jacobians(key) += dTdA;
|
||||
// } else {
|
||||
jacobians(key).block < ROWS, COLS > (0, 0) += dTdA; // block makes HUGE difference
|
||||
// }
|
||||
|
||||
}
|
||||
/// Handle Leaf Case for Dynamic Matrix type (slower)
|
||||
template<>
|
||||
void handleLeafCase(
|
||||
inline void handleLeafCase(
|
||||
const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>& dTdA,
|
||||
JacobianMap& jacobians, Key key) {
|
||||
jacobians(key) += dTdA;
|
||||
|
|
Loading…
Reference in New Issue