libflame  revision_anchor
Functions
FLASH_Obj_create_hier_conf_to_flat_ext_check.c File Reference

(r)

Functions

FLA_Error FLASH_Obj_create_hier_conf_to_flat_ext_check (FLA_Trans trans, FLA_Obj F, dim_t depth, dim_t *b_m, dim_t *b_n, FLA_Obj *H)
 

Function Documentation

◆ FLASH_Obj_create_hier_conf_to_flat_ext_check()

FLA_Error FLASH_Obj_create_hier_conf_to_flat_ext_check ( FLA_Trans  trans,
FLA_Obj  F,
dim_t  depth,
dim_t b_m,
dim_t b_n,
FLA_Obj H 
)

References FLA_Check_null_pointer(), and FLA_Check_valid_real_trans().

Referenced by FLASH_Obj_create_hier_conf_to_flat_ext().

14 {
15  FLA_Error e_val;
16 
17  e_val = FLA_Check_valid_real_trans( trans );
18  FLA_Check_error_code( e_val );
19 
20  e_val = FLA_Check_null_pointer( b_m );
21  FLA_Check_error_code( e_val );
22 
23  e_val = FLA_Check_null_pointer( b_n );
24  FLA_Check_error_code( e_val );
25 
26  e_val = FLA_Check_null_pointer( H );
27  FLA_Check_error_code( e_val );
28 
29  // A value of depth < 0 should cause an error.
30 
31  // First depth entries in blocksize should be checked; values < 1 should cause error.
32 
33  return FLA_SUCCESS;
34 }
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Error FLA_Check_valid_real_trans(FLA_Trans trans)
Definition: FLA_Check.c:917
FLA_Error FLA_Check_null_pointer(void *ptr)
Definition: FLA_Check.c:518