libflame revision_anchor
Functions
FLASH_Obj_create_hierarchy_check.c File Reference

(r)

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)
 

Function Documentation

◆ FLASH_Obj_create_hierarchy_check()

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 
)
14{
16
17 e_val = FLA_Check_valid_datatype( datatype );
19
22
25
28
31
34
37
40
41 // A value of depth < 0 should cause an error.
42
43 // Values of m < 1, n < 1 should cause an error. (or < 0?)
44
45 // First depth entries in depth_sizes_m,_n elem_sizes_m,_n m_,n_offsets should be checked; values < 1 should cause error.
46
47 return FLA_SUCCESS;
48}
FLA_Error FLA_Check_null_pointer(void *ptr)
Definition FLA_Check.c:518
FLA_Error FLA_Check_valid_datatype(FLA_Datatype datatype)
Definition FLA_Check.c:156
int FLA_Error
Definition FLA_type_defs.h:47
int i
Definition bl1_axmyv2.c:145

References FLA_Check_null_pointer(), and FLA_Check_valid_datatype().

Referenced by FLASH_Obj_create_hierarchy().