FLA_Copy_check.c File Reference

(r)


Functions

FLA_Error FLA_Copy_check (FLA_Obj A, FLA_Obj B)

Function Documentation

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

Referenced by FLA_Copy(), FLA_Copy_external(), and FLASH_Copy().

00036 {
00037   FLA_Error e_val;
00038 
00039   e_val = FLA_Check_valid_object_datatype( A );
00040   FLA_Check_error_code( e_val );
00041 
00042   e_val = FLA_Check_nonconstant_object( B );
00043   FLA_Check_error_code( e_val );
00044 
00045   e_val = FLA_Check_consistent_object_datatype( A, B );
00046   FLA_Check_error_code( e_val );
00047 
00048   if ( FLA_Obj_is_vector( A ) && FLA_Obj_is_vector( B ) )
00049   {
00050     e_val = FLA_Check_equal_vector_lengths( A, B );
00051     FLA_Check_error_code( e_val );
00052   }
00053   else
00054   {
00055     e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, A, B );
00056     FLA_Check_error_code( e_val );
00057   }
00058 
00059   return FLA_SUCCESS;
00060 }


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