Debian Codegraph @

packages/kokkos-kernels/batched/dense/src/KokkosBatched_Householder_Decl.hpp

raw
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_HOUSEHOLDER_DECL_HPP
17 #define KOKKOSBATCHED_HOUSEHOLDER_DECL_HPP
18
19 /// \author Kyungjoo Kim ([email protected])
20
21 #include "KokkosBatched_Util.hpp"
22
23 namespace KokkosBatched {
24
25 ///
26 /// Serial Householder
27 ///
28
29 // level 1 operation
30 template <typename ArgSide>
31 struct SerialHouseholder {
32 template <typename aViewType, typename tauViewType>
33 KOKKOS_INLINE_FUNCTION static int invoke(const aViewType &a, const tauViewType &tau);
34 };
35
36 ///
37 /// TeamVector Householder
38 ///
39
40 // level 1 operation
41 template <typename MemberType, typename ArgSide>
42 struct TeamVectorHouseholder {
43 template <typename MemberType, typename aViewType, typename tauViewType>
44 KOKKOS_INLINE_FUNCTION static int invoke(const MemberType &member, const aViewType &a, const tauViewType &tau);
45 };
46
47 } // namespace KokkosBatched
48
49 #include "KokkosBatched_Householder_Serial_Impl.hpp"
50 #include "KokkosBatched_Householder_TeamVector_Impl.hpp"
51
52 #endif