FLA_Axpy_check.c File Reference

(r)


Functions

FLA_Error FLA_Axpy_check (FLA_Obj alpha, FLA_Obj A, FLA_Obj B)

Function Documentation

FLA_Error FLA_Axpy_check ( 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_nonconstant_object(), and FLA_Obj_is_vector().

Referenced by FLA_Axpy(), FLA_Axpy_external(), and FLASH_Axpy().

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   e_val = FLA_Check_identical_object_datatype( A, B );
00046   FLA_Check_error_code( e_val );
00047 
00048   e_val = FLA_Check_consistent_object_datatype( A, alpha );
00049   FLA_Check_error_code( e_val );
00050 
00051   if ( FLA_Obj_is_vector( A ) && FLA_Obj_is_vector( B ) )
00052   {
00053     e_val = FLA_Check_equal_vector_lengths( A, B );
00054     FLA_Check_error_code( e_val );
00055   }
00056   else
00057   {
00058     e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, A, B );
00059     FLA_Check_error_code( e_val );
00060   }
00061 
00062   return FLA_SUCCESS;
00063 }


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