Debian Codegraph @

src/lapack/dec/q/qrutinc/front/flamec/FLASH_QR_UT_inc_opt1.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_cntl_leaf;
14 extern fla_apqut_t* fla_apqut_cntl_leaf;
15 extern fla_qr2ut_t* fla_qr2ut_cntl_leaf;
16 extern fla_apq2ut_t* fla_apq2ut_cntl_leaf;
17
18 extern fla_qrutinc_t* flash_qrutinc_cntl;
19
20 FLA_Error FLASH_QR_UT_inc_opt1( FLA_Obj A, FLA_Obj TW )
21 {
22 FLA_Error r_val;
23 FLA_Obj U;
24
25 // Check parameters.
26 if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
27 FLA_QR_UT_inc_check( A, TW );
28
29 // Create a temporary matrix to hold copies of all of the blocks along the
30 // diagonal of A.
31 FLASH_Obj_create_diag_panel( A, &U );
32
33 // Begin a parallel region.
34 FLASH_Queue_begin();
35
36 // Invoke FLA_QR_UT_inc_blk_var2() with the standard control tree.
37 r_val = FLA_QR_UT_inc_blk_var2( A, TW, U, flash_qrutinc_cntl );
38
39 // End the parallel region.
40 FLASH_Queue_end();
41
42 // Free the temporary matrix.
43 FLASH_Obj_free( &U );
44
45 return r_val;
46 }
47