libflame  revision_anchor
Functions
FLA_Eig_gest_internal_check.c File Reference

(r)

Functions

FLA_Error FLA_Eig_gest_internal_check (FLA_Inv inv, FLA_Uplo uplo, FLA_Obj A, FLA_Obj Y, FLA_Obj B, fla_eig_gest_t *cntl)
 

Function Documentation

◆ FLA_Eig_gest_internal_check()

FLA_Error FLA_Eig_gest_internal_check ( FLA_Inv  inv,
FLA_Uplo  uplo,
FLA_Obj  A,
FLA_Obj  Y,
FLA_Obj  B,
fla_eig_gest_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 
28  // Verify conformality between all the objects. This check works regardless
29  // of whether the element type is FLA_MATRIX or FLA_SCALAR because the
30  // element length and width are used instead of scalar length and width.
31  e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, A, B );
32  FLA_Check_error_code( e_val );
33 
34  if ( FLA_Cntl_variant( cntl ) == FLA_BLOCKED_VARIANT1 ||
35  FLA_Cntl_variant( cntl ) == FLA_BLOCKED_VARIANT2 )
36  {
38  FLA_Check_error_code( e_val );
39  }
40  else if ( FLA_Cntl_variant( cntl ) == FLA_BLOCKED_VARIANT4 ||
41  FLA_Cntl_variant( cntl ) == FLA_BLOCKED_VARIANT5 )
42  {
44  FLA_Check_error_code( e_val );
45  }
46  else if ( FLA_Cntl_variant( cntl ) == FLA_BLOCKED_VARIANT3 )
47  {
48  e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, Y, A );
49  FLA_Check_error_code( e_val );
50  }
51 
52  return FLA_SUCCESS;
53 }
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_conformal_dims(FLA_Trans trans, FLA_Obj A, FLA_Obj B)
Definition: FLA_Check.c:393
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_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(), FLA_Check_object_length_equals(), FLA_Check_object_width_equals(), FLA_Obj_length(), and FLA_Obj_width().

Referenced by FLA_Eig_gest_internal().