Skip to content
Snippets Groups Projects
Commit fed0256b authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add is_floating_point_eigen_array_v

parent a1636f06
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,11 @@ namespace simox::meta
using eigen_t = Eigen::Array<ScalarType, Rows, Cols>;
};
template<class T>
static constexpr bool is_eigen_array_v = is_eigen_array<T>::value;
template<class T>
static constexpr bool is_floating_point_eigen_array_v =
is_eigen_array_v<T>&&
std::is_floating_point_v<typename is_eigen_array<T>::scalar_t>;
}
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