<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
larfg.hpp
Go to the documentation of this file.
1
5//
6// Copyright (c) 2021-2023, University of Colorado Denver. All rights reserved.
7//
8// This file is part of <T>LAPACK.
9// <T>LAPACK is free software: you can redistribute it and/or modify it under
10// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
11
12#ifndef TLAPACK_LEGACY_LARFG_HH
13#define TLAPACK_LEGACY_LARFG_HH
14
16
17namespace tlapack {
18namespace legacy {
19
20 template <typename T>
21 void larfg(idx_t n, T& alpha, T* x, int_t incx, T& tau)
22 {
24 x_, T, n - 1, x, incx,
25 return larfg(COLUMNWISE_STORAGE, alpha, x_, tau));
26 }
27
34 template <typename T>
35 void larfg(idx_t n, T* alpha, T* x, int_t incx, T* tau)
36 {
37 larfg(n, *alpha, x, incx, *tau);
38 }
39
40} // namespace legacy
41} // namespace tlapack
42
43#endif // TLAPACK_LEGACY_LARFG_HH
void larfg(storage_t storeMode, type_t< vector_t > &alpha, vector_t &x, type_t< vector_t > &tau)
Generates a elementary Householder reflection.
Definition larfg.hpp:73
#define tlapack_expr_with_vector(x, TX, n, X, incx, expr)
Creates a vector object and executes an expression with it.
Definition utils.hpp:68
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113