| 1 |
//@HEADER |
| 2 |
// ************************************************************************ |
| 3 |
// |
| 4 |
// Kokkos v. 4.0 |
| 5 |
// Copyright (2022) National Technology & Engineering |
| 6 |
// Solutions of Sandia, LLC (NTESS). |
| 7 |
// |
| 8 |
// Under the terms of Contract DE-NA0003525 with NTESS, |
| 9 |
// the U.S. Government retains certain rights in this software. |
| 10 |
// |
| 11 |
// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. |
| 12 |
// See https://kokkos.org/LICENSE for license information. |
| 13 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 14 |
// |
| 15 |
//@HEADER |
| 16 |
#ifndef KOKKOSBATCHED_QR_WITH_COLUMNPIVOTING_TEAMVECTOR_IMPL_HPP |
| 17 |
#define KOKKOSBATCHED_QR_WITH_COLUMNPIVOTING_TEAMVECTOR_IMPL_HPP |
| 18 |
|
| 19 |
/// \author Kyungjoo Kim ([email protected]) |
| 20 |
|
| 21 |
#include "KokkosBatched_Util.hpp" |
| 22 |
#include "KokkosBatched_QR_WithColumnPivoting_TeamVector_Internal.hpp" |
| 23 |
|
| 24 |
namespace KokkosBatched { |
| 25 |
|
| 26 |
/// |
| 27 |
/// TeamVector Impl |
| 28 |
/// =============== |
| 29 |
|
| 30 |
template <typename MemberType> |
| 31 |
struct TeamVectorQR_WithColumnPivoting<MemberType, Algo::QR::Unblocked> { |
| 32 |
template <typename AViewType, typename tViewType, typename pViewType, typename wViewType> |
| 33 |
KOKKOS_INLINE_FUNCTION static int invoke(const MemberType &member, const AViewType &A, const tViewType &t, |
| 34 |
const pViewType &p, const wViewType &w, |
| 35 |
/* */ int &matrix_rank) { |
| 36 |
return TeamVectorQR_WithColumnPivotingInternal::invoke(member, A.extent(0), A.extent(1), A.data(), A.stride_0(), |
| 37 |
A.stride_1(), t.data(), t.stride_0(), p.data(), p.stride_0(), |
| 38 |
w.data(), matrix_rank); |
| 39 |
} |
| 40 |
}; |
| 41 |
|
| 42 |
} // namespace KokkosBatched |
| 43 |
|
| 44 |
#endif |