libflame  revision_anchor
Functions
FLA_Lyap_internal_check.c File Reference

(r)

Functions

FLA_Error FLA_Lyap_internal_check (FLA_Trans trans, FLA_Obj isgn, FLA_Obj A, FLA_Obj C, FLA_Obj scale, fla_lyap_t *cntl)
 

Function Documentation

◆ FLA_Lyap_internal_check()

FLA_Error FLA_Lyap_internal_check ( FLA_Trans  trans,
FLA_Obj  isgn,
FLA_Obj  A,
FLA_Obj  C,
FLA_Obj  scale,
fla_lyap_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 
25  // Verify conformality between all the objects. This check works regardless
26  // of whether the element type is FLA_MATRIX or FLA_SCALAR because the
27  // element length and width are used instead of scalar length and width.
28  e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, A, C );
29  FLA_Check_error_code( e_val );
30 
31  e_val = FLA_Check_square( A );
32  FLA_Check_error_code( e_val );
33 
34  e_val = FLA_Check_square( C );
35  FLA_Check_error_code( e_val );
36 
37  return FLA_SUCCESS;
38 }
FLA_Error FLA_Check_square(FLA_Obj A)
Definition: FLA_Check.c:363
FLA_Error FLA_Check_null_pointer(void *ptr)
Definition: FLA_Check.c:518
FLA_Error FLA_Check_conformal_dims(FLA_Trans trans, FLA_Obj A, FLA_Obj B)
Definition: FLA_Check.c:393
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_conformal_dims(), FLA_Check_identical_object_elemtype(), FLA_Check_null_pointer(), and FLA_Check_square().

Referenced by FLA_Lyap_internal().