libflame revision_anchor
Functions
FLASH_Max_elemwise_diff.c File Reference

(r)

Functions

double FLASH_Max_elemwise_diff (FLA_Obj A, FLA_Obj B)
 

Function Documentation

◆ FLASH_Max_elemwise_diff()

double FLASH_Max_elemwise_diff ( FLA_Obj  A,
FLA_Obj  B 
)
14{
16 double max_diff;
17
18 // Exit early if one dimension is zero.
19 if ( FLA_Obj_has_zero_dim( A ) ) return -1.0;
20
21 // Create a temporary flat copy of the hierarchical objects.
24
25 // Get the maximum element-wise diff.
27
28 // Free the temporary flat objects.
31
32 return max_diff;
33}
FLA_Error FLASH_Obj_create_flat_copy_of_hier(FLA_Obj H, FLA_Obj *F)
Definition FLASH_Obj.c:623
FLA_Bool FLA_Obj_has_zero_dim(FLA_Obj A)
Definition FLA_Query.c:400
FLA_Error FLA_Obj_free(FLA_Obj *obj)
Definition FLA_Obj.c:588
double FLA_Max_elemwise_diff(FLA_Obj A, FLA_Obj B)
Definition FLA_Max_elemwise_diff.c:13
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

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