Skip to content

Commit

Permalink
Fix eigen templated function calls
Browse files Browse the repository at this point in the history
only call .template when there's an actual template parameter
to be passed
  • Loading branch information
vigsterkr committed Aug 14, 2016
1 parent b9af3fe commit d986479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct elementwise_square<Backend::EIGEN3,Matrix>
b.m_row_begin, b.m_col_begin,
b.m_row_size, b.m_col_size);

r = m.array().template square();
r = m.array().square();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ struct sum_symmetric<Backend::EIGEN3,Matrix>
{
Eigen::Map<MatrixXt> map = b.m_matrix;

const MatrixXt& m=map.template block(b.m_row_begin, b.m_col_begin,
const MatrixXt& m=map.block(b.m_row_begin, b.m_col_begin,
b.m_row_size, b.m_col_size);

REQUIRE(m.rows()==m.cols(), "Matrix is not square!\n");
Expand Down

0 comments on commit d986479

Please sign in to comment.