diff --git a/include/sleipnir/util/Concepts.hpp b/include/sleipnir/util/Concepts.hpp index 3f4f7252..653200e7 100644 --- a/include/sleipnir/util/Concepts.hpp +++ b/include/sleipnir/util/Concepts.hpp @@ -15,6 +15,10 @@ template concept ScalarLike = std::same_as || std::same_as || std::same_as; +template +concept SleipnirMatrixLike = std::same_as || + std::same_as>; + template concept EigenMatrixLike = std::derived_from>; @@ -23,8 +27,6 @@ template concept EigenSolver = requires(T t) { t.solve(Eigen::VectorXd{}); }; template -concept MatrixLike = - std::same_as || - std::same_as> || EigenMatrixLike; +concept MatrixLike = SleipnirMatrixLike || EigenMatrixLike; } // namespace sleipnir