//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Government retains certain rights in this software. // // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. // See https://kokkos.org/LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //@HEADER #ifndef KOKKOSBATCHED_PBTRF_HPP_ #define KOKKOSBATCHED_PBTRF_HPP_ #include /// \author Yuuichi Asahi (yuuichi.asahi@cea.fr) namespace KokkosBatched { /// \brief Serial Batched Pbtrf: /// Compute the Cholesky factorization U**H * U (or L * L**H) of a real /// symmetric (or complex Hermitian) positive definite banded matrix A_l /// for all l = 0, ..., /// The factorization has the form /// A = U**T * U , if ArgUplo = KokkosBatched::Uplo::Upper, or /// A = L * L**T, if ArgUplo = KokkosBatched::Uplo::Lower, /// where U is an upper triangular matrix, U**T is the transpose of U, and /// L is lower triangular. /// This is the unblocked version of the algorithm, calling Level 2 BLAS. /// /// \tparam ABViewType: Input type for a banded matrix, needs to be a 2D /// view /// /// \param ab [inout]: ab is a ldab by n banded matrix, with ( kd + 1 ) diagonals /// /// No nested parallel_for is used inside of the function. /// template struct SerialPbtrf { template KOKKOS_INLINE_FUNCTION static int invoke(const ABViewType &ab); }; } // namespace KokkosBatched #include "KokkosBatched_Pbtrf_Serial_Impl.hpp" #endif // KOKKOSBATCHED_PBTRF_HPP_