Debian Codegraph @

src/lapack/dec/q/qrutpiv/front/flamec/FLA_QR_UT_piv.c

raw
1 /*
2
3 Copyright (C) 2014, The University of Texas at Austin
4
5 This file is part of libflame and is available under the 3-Clause
6 BSD license, which can be found in the LICENSE file at the top-level
7 directory, or at http://opensource.org/licenses/BSD-3-Clause
8
9 */
10
11 #include "FLAME.h"
12
13 extern fla_qrut_t* fla_qrut_piv_cntl_leaf;
14
15 FLA_Error FLA_QR_UT_piv( FLA_Obj A, FLA_Obj T, FLA_Obj w, FLA_Obj p )
16 {
17 FLA_Error r_val;
18
19 // Check parameters.
20 if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
21 FLA_QR_UT_piv_check( A, T, w, p );
22
23 FLA_Set( FLA_ZERO, w );
24 FLA_QR_UT_piv_colnorm( FLA_ONE, A, w );
25
26 r_val = FLA_QR_UT_piv_internal( A, T, w, p, fla_qrut_piv_cntl_leaf );
27
28 return r_val;
29 }
30