FLA_Copyt_check.c File Reference

(r)


Functions

FLA_Error FLA_Copyt_check (FLA_Trans trans, FLA_Obj A, FLA_Obj B)

Function Documentation

FLA_Error FLA_Copyt_check ( FLA_Trans  trans,
FLA_Obj  A,
FLA_Obj  B 
)

References FLA_Check_conformal_dims(), FLA_Check_consistent_object_datatype(), FLA_Check_equal_vector_lengths(), FLA_Check_nonconstant_object(), FLA_Check_valid_object_datatype(), FLA_Check_valid_trans(), and FLA_Obj_is_vector().

Referenced by FLA_Copyt_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_valid_object_datatype( A );
00043   FLA_Check_error_code( e_val );
00044 
00045   e_val = FLA_Check_nonconstant_object( B );
00046   FLA_Check_error_code( e_val );
00047 
00048   e_val = FLA_Check_consistent_object_datatype( A, B );
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( trans, 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