Functions | |
FLA_Error | FLASH_Obj_create_hierarchy_check (FLA_Datatype datatype, dim_t m, dim_t n, dim_t depth, dim_t *elem_sizes_m, dim_t *elem_sizes_n, FLA_Obj flat_matrix, FLA_Obj *H, unsigned long id, dim_t depth_overall, dim_t *depth_sizes_m, dim_t *depth_sizes_n, dim_t *m_offsets, dim_t *n_offsets) |
FLA_Error FLASH_Obj_create_hierarchy_check | ( | FLA_Datatype | datatype, | |
dim_t | m, | |||
dim_t | n, | |||
dim_t | depth, | |||
dim_t * | elem_sizes_m, | |||
dim_t * | elem_sizes_n, | |||
FLA_Obj | flat_matrix, | |||
FLA_Obj * | H, | |||
unsigned long | id, | |||
dim_t | depth_overall, | |||
dim_t * | depth_sizes_m, | |||
dim_t * | depth_sizes_n, | |||
dim_t * | m_offsets, | |||
dim_t * | n_offsets | |||
) |
References FLA_Check_null_pointer(), and FLA_Check_valid_datatype().
Referenced by FLASH_Obj_create_hierarchy().
00036 { 00037 FLA_Error e_val; 00038 00039 e_val = FLA_Check_valid_datatype( datatype ); 00040 FLA_Check_error_code( e_val ); 00041 00042 e_val = FLA_Check_null_pointer( elem_sizes_m ); 00043 FLA_Check_error_code( e_val ); 00044 00045 e_val = FLA_Check_null_pointer( elem_sizes_n ); 00046 FLA_Check_error_code( e_val ); 00047 00048 e_val = FLA_Check_null_pointer( H ); 00049 FLA_Check_error_code( e_val ); 00050 00051 e_val = FLA_Check_null_pointer( depth_sizes_m ); 00052 FLA_Check_error_code( e_val ); 00053 00054 e_val = FLA_Check_null_pointer( depth_sizes_n ); 00055 FLA_Check_error_code( e_val ); 00056 00057 e_val = FLA_Check_null_pointer( m_offsets ); 00058 FLA_Check_error_code( e_val ); 00059 00060 e_val = FLA_Check_null_pointer( n_offsets ); 00061 FLA_Check_error_code( e_val ); 00062 00063 // A value of depth < 0 should cause an error. 00064 00065 // Values of m < 1, n < 1 should cause an error. (or < 0?) 00066 00067 // First depth entries in depth_sizes_m,_n elem_sizes_m,_n m_,n_offsets should be checked; values < 1 should cause error. 00068 00069 return FLA_SUCCESS; 00070 }