FLASH_Max_elemwise_diff.c File Reference

(r)


Functions

double FLASH_Max_elemwise_diff (FLA_Obj A, FLA_Obj B)

Function Documentation

double FLASH_Max_elemwise_diff ( FLA_Obj  A,
FLA_Obj  B 
)

References FLA_Max_elemwise_diff(), FLA_Obj_free(), and FLASH_Obj_create_flat_copy_of_hier().

00036 {
00037     FLA_Obj A_flat, B_flat;
00038     double  max_diff;
00039 
00040     // Create a temporary flat copy of the hierarchical objects.
00041     FLASH_Obj_create_flat_copy_of_hier( A, &A_flat );
00042     FLASH_Obj_create_flat_copy_of_hier( B, &B_flat );
00043 
00044     // Get the maximum element-wise diff.
00045     max_diff = FLA_Max_elemwise_diff( A_flat, B_flat );
00046     
00047     // Free the temporary flat objects.
00048     FLA_Obj_free( &A_flat );
00049     FLA_Obj_free( &B_flat );
00050     
00051     return max_diff;
00052 }


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