Expression Templates Library (ETL)
decomposition.hpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c) 2014-2023 Baptiste Wicht
3 // Distributed under the terms of the MIT License.
4 // (See accompanying file LICENSE or copy at
5 // http://opensource.org/licenses/MIT)
6 //=======================================================================
7 
13 #pragma once
14 
15 //Include the implementations
17 
18 namespace etl::detail {
19 
23 struct lu_impl {
31  template <typename AT, typename LT, typename UT, typename PT>
32  static void apply(const AT& A, LT& L, UT& U, PT& P) {
33  etl::impl::standard::lu(A, L, U, P);
34  }
35 };
36 
40 struct qr_impl {
47  template <typename AT, typename QT, typename RT>
48  static void apply(AT& A, QT& Q, RT& R) {
49  etl::impl::standard::qr(A, Q, R);
50  }
51 };
52 
53 } //end of namespace etl::detail
Functor for euclidean norm.
Definition: decomposition.hpp:23
Standard implementation of the decompositions.
static void apply(AT &A, QT &Q, RT &R)
Apply the functor to A,Q,R.
Definition: decomposition.hpp:48
Definition: expression_builder.hpp:699
static void apply(const AT &A, LT &L, UT &U, PT &P)
Apply the functor to A, L, U, P.
Definition: decomposition.hpp:32
Functor for QR decomposition.
Definition: decomposition.hpp:40