Skip to content
Snippets Groups Projects
Commit 9c6aa5de authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix usage of std::isfinite

parent 73702fed
No related branches found
No related tags found
No related merge requests found
......@@ -3,18 +3,20 @@
#include <Eigen/Core>
#include <cmath>
namespace simox::math
{
using std::is_finite;
// using std::isfinite; // Is this really necessary?
template<class Derived>
template <class Derived>
bool is_finite(const Eigen::MatrixBase<Derived>& mat)
{
for (int x = 0; x < mat.rows(); ++x)
{
for (int y = 0; y < mat.cols(); ++y)
{
if (!is_finite(mat(x, y)))
if (!std::isfinite(mat(x, y)))
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment