Functions | |
FLA_Error | FLA_Scal_check (FLA_Obj alpha, FLA_Obj A) |
References FLA_Check_consistent_object_datatype(), FLA_Check_floating_object(), FLA_Check_identical_object_precision(), FLA_Check_if_scalar(), FLA_Check_nonconstant_object(), and FLA_Obj_is_real().
Referenced by FLA_Scal_external().
00036 { 00037 FLA_Error e_val; 00038 00039 e_val = FLA_Check_floating_object( A ); 00040 FLA_Check_error_code( e_val ); 00041 00042 e_val = FLA_Check_nonconstant_object( A ); 00043 FLA_Check_error_code( e_val ); 00044 00045 if ( FLA_Obj_is_real( A ) ) 00046 { 00047 e_val = FLA_Check_consistent_object_datatype( A, alpha ); 00048 FLA_Check_error_code( e_val ); 00049 } 00050 else 00051 { 00052 e_val = FLA_Check_identical_object_precision( A, alpha ); 00053 FLA_Check_error_code( e_val ); 00054 } 00055 00056 e_val = FLA_Check_if_scalar( alpha ); 00057 FLA_Check_error_code( e_val ); 00058 00059 return FLA_SUCCESS; 00060 }