libflame revision_anchor
FLA_UDdate_UT_internal_check.c File Reference

(r)

Functions

FLA_Error FLA_UDdate_UT_internal_check (FLA_Obj R, FLA_Obj C, FLA_Obj D, FLA_Obj T, fla_uddateut_t *cntl)
 

Function Documentation

◆ FLA_UDdate_UT_internal_check()

FLA_Error FLA_UDdate_UT_internal_check ( FLA_Obj R,
FLA_Obj C,
FLA_Obj D,
FLA_Obj T,
fla_uddateut_t * cntl )
14{
15 FLA_Error e_val;
16
17 // Abort if the control structure is NULL.
18 e_val = FLA_Check_null_pointer( ( void* ) cntl );
19 FLA_Check_error_code( e_val );
20
21 // Verify that the object element types are identical.
23 FLA_Check_error_code( e_val );
24
26 FLA_Check_error_code( e_val );
27
29 FLA_Check_error_code( e_val );
30
31 e_val = FLA_Check_square( R );
32 FLA_Check_error_code( e_val );
33
34 if ( FLA_Obj_elemtype( R ) == FLA_MATRIX )
35 {
37 FLA_Check_error_code( e_val );
38
40 FLA_Check_error_code( e_val );
41
43 FLA_Check_error_code( e_val );
44
46 FLA_Obj_length( D ) ) );
47 FLA_Check_error_code( e_val );
48 }
49 else
50 {
51
52 }
53
54 return FLA_SUCCESS;
55}
FLA_Error FLA_Check_square(FLA_Obj A)
Definition FLA_Check.c:363
FLA_Error FLA_Check_object_width_equals(FLA_Obj A, dim_t n)
Definition FLA_Check.c:1049
FLA_Error FLA_Check_null_pointer(void *ptr)
Definition FLA_Check.c:518
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
FLA_Error FLA_Check_object_length_equals(FLA_Obj A, dim_t m)
Definition FLA_Check.c:1039
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116
FLA_Elemtype FLA_Obj_elemtype(FLA_Obj obj)
Definition FLA_Query.c:51
FLA_Error FLA_Check_identical_object_elemtype(FLA_Obj A, FLA_Obj B)
Definition FLA_Check.c:987
int FLA_Error
Definition FLA_type_defs.h:47

References FLA_Check_identical_object_elemtype(), FLA_Check_null_pointer(), FLA_Check_object_length_equals(), FLA_Check_object_width_equals(), FLA_Check_square(), FLA_Obj_elemtype(), FLA_Obj_length(), and FLA_Obj_width().

Referenced by FLA_UDdate_UT_internal().