diff --git a/batched/dense/src/KokkosBatched_Gbtrf.hpp b/batched/dense/src/KokkosBatched_Gbtrf.hpp index 19cd0df34e..893dba3bac 100644 --- a/batched/dense/src/KokkosBatched_Gbtrf.hpp +++ b/batched/dense/src/KokkosBatched_Gbtrf.hpp @@ -25,6 +25,9 @@ namespace KokkosBatched { /// \brief Serial Batched Gbtrf: /// Compute a LU factorization of a m-by-n band matrix A using partial /// pivoting with row interchanges. +/// \tparam ArgAlgo: Type indicating the blocked (KokkosBatched::Algo::Gbtrf::Blocked) or unblocked +/// (KokkosBatched::Algo::Gbtrf::Unblocked) algorithm to be used +/// /// \tparam ABViewType: Input type for the matrix, needs to be a 2D view /// \tparam PivViewType: Input type for the pivot indices, needs to be a 1D view /// @@ -32,13 +35,14 @@ namespace KokkosBatched { /// \param piv [out]: On exit, the pivot indices, a rank 1 view /// \param kl [in]: The number of subdiagonals within the band of A. kl >= 0 /// \param ku [in]: The number of superdiagonals within the band of A. ku >= 0 -/// \param m [in]: The number of rows of the matrix A. (optional) +/// \param m [in]: The number of rows of the matrix A. (optional, default is -1, corresponding to m == n) /// /// No nested parallel_for is used inside of the function. /// template struct SerialGbtrf { + static_assert(std::is_same_v, "KokkosBatched::gbtrf: Use Algo::Gbtrf::Unblocked"); template KOKKOS_INLINE_FUNCTION static int invoke(const ABViewType &Ab, const PivViewType &piv, const int kl, const int ku, const int m = -1);