FLA_Obj_scale_diagonal_check.c File Reference

(r)


Functions

FLA_Error FLA_Obj_scale_diagonal_check (FLA_Obj alpha, FLA_Obj A)

Function Documentation

FLA_Error FLA_Obj_scale_diagonal_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_Obj_scale_diagonal().

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 }


Generated on Mon Jul 6 05:45:51 2009 for libflame by  doxygen 1.5.9