libflame revision_anchor
Functions
FLASH_Obj_create_helper_check.c File Reference

(r)

Functions

FLA_Error FLASH_Obj_create_helper_check (FLA_Bool without_buffer, FLA_Datatype datatype, dim_t m, dim_t n, dim_t depth, dim_t *b_m, dim_t *b_n, FLA_Obj *H)
 

Function Documentation

◆ FLASH_Obj_create_helper_check()

FLA_Error FLASH_Obj_create_helper_check ( FLA_Bool  without_buffer,
FLA_Datatype  datatype,
dim_t  m,
dim_t  n,
dim_t  depth,
dim_t b_m,
dim_t b_n,
FLA_Obj H 
)
14{
16
17 e_val = FLA_Check_valid_datatype( datatype );
19
22
25
28
29 // A value of depth < 0 should cause an error.
30
31 // Values of m < 1, n < 1 should cause an error. (or < 0?)
32
33 // First depth entries in blocksize_m, _n should be checked; values < 1 should cause error.
34
35 return FLA_SUCCESS;
36}
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_helper().