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
FLA_Apply_HUD_UT_check(FLA_Side side,FLA_Obj tau,FLA_Obj w12t,FLA_Obj r12t,FLA_Obj u1,FLA_Obj C2,FLA_Obj v1,FLA_Obj D2)13 FLA_Error FLA_Apply_HUD_UT_check( FLA_Side side, FLA_Obj tau, FLA_Obj w12t, FLA_Obj r12t, FLA_Obj u1, FLA_Obj C2, FLA_Obj v1, FLA_Obj D2 )
14 {
15 FLA_Error e_val;
16
17 e_val = FLA_Check_valid_leftright_side( side );
18 FLA_Check_error_code( e_val );
19
20 e_val = FLA_Check_floating_object( tau );
21 FLA_Check_error_code( e_val );
22
23 e_val = FLA_Check_nonconstant_object( tau );
24 FLA_Check_error_code( e_val );
25
26 e_val = FLA_Check_identical_object_datatype( tau, w12t );
27 FLA_Check_error_code( e_val );
28
29 e_val = FLA_Check_identical_object_datatype( tau, r12t );
30 FLA_Check_error_code( e_val );
31
32 e_val = FLA_Check_identical_object_datatype( tau, u1 );
33 FLA_Check_error_code( e_val );
34
35 e_val = FLA_Check_identical_object_datatype( tau, C2 );
36 FLA_Check_error_code( e_val );
37
38 e_val = FLA_Check_identical_object_datatype( tau, v1 );
39 FLA_Check_error_code( e_val );
40
41 e_val = FLA_Check_identical_object_datatype( tau, D2 );
42 FLA_Check_error_code( e_val );
43
44 e_val = FLA_Check_if_scalar( tau );
45 FLA_Check_error_code( e_val );
46
47 e_val = FLA_Check_if_vector( w12t );
48 FLA_Check_error_code( e_val );
49
50 e_val = FLA_Check_if_vector( r12t );
51 FLA_Check_error_code( e_val );
52
53 e_val = FLA_Check_if_vector( u1 );
54 FLA_Check_error_code( e_val );
55
56 e_val = FLA_Check_if_vector( v1 );
57 FLA_Check_error_code( e_val );
58
59 e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, w12t, r12t );
60 FLA_Check_error_code( e_val );
61
62 e_val = FLA_Check_matrix_vector_dims( FLA_NO_TRANSPOSE, C2, r12t, u1 );
63 FLA_Check_error_code( e_val );
64
65 e_val = FLA_Check_matrix_vector_dims( FLA_NO_TRANSPOSE, D2, r12t, v1 );
66 FLA_Check_error_code( e_val );
67
68 return FLA_SUCCESS;
69 }
70
71
72