Functions | |
FLA_Error | FLA_Axpyt_check (FLA_Trans trans, FLA_Obj alpha, FLA_Obj A, FLA_Obj B) |
References FLA_Check_conformal_dims(), FLA_Check_consistent_object_datatype(), FLA_Check_equal_vector_lengths(), FLA_Check_floating_object(), FLA_Check_identical_object_datatype(), FLA_Check_if_scalar(), FLA_Check_nonconstant_object(), FLA_Check_valid_trans(), and FLA_Obj_is_vector().
Referenced by FLA_Axpyt_external().
00036 { 00037 FLA_Error e_val; 00038 00039 e_val = FLA_Check_valid_trans( trans ); 00040 FLA_Check_error_code( e_val ); 00041 00042 e_val = FLA_Check_floating_object( A ); 00043 FLA_Check_error_code( e_val ); 00044 00045 e_val = FLA_Check_nonconstant_object( A ); 00046 FLA_Check_error_code( e_val ); 00047 00048 e_val = FLA_Check_identical_object_datatype( A, B ); 00049 FLA_Check_error_code( e_val ); 00050 00051 e_val = FLA_Check_consistent_object_datatype( A, alpha ); 00052 FLA_Check_error_code( e_val ); 00053 00054 e_val = FLA_Check_if_scalar( alpha ); 00055 FLA_Check_error_code( e_val ); 00056 00057 if ( FLA_Obj_is_vector( A ) && FLA_Obj_is_vector( B ) ) 00058 { 00059 e_val = FLA_Check_equal_vector_lengths( A, B ); 00060 FLA_Check_error_code( e_val ); 00061 } 00062 else 00063 { 00064 e_val = FLA_Check_conformal_dims( trans, A, B ); 00065 FLA_Check_error_code( e_val ); 00066 } 00067 00068 return FLA_SUCCESS; 00069 }