libflame  revision_anchor
Functions
FLA_Form_perm_matrix_check.c File Reference

(r)

Functions

FLA_Error FLA_Form_perm_matrix_check (FLA_Obj p, FLA_Obj A)
 

Function Documentation

◆ FLA_Form_perm_matrix_check()

FLA_Error FLA_Form_perm_matrix_check ( FLA_Obj  p,
FLA_Obj  A 
)

References FLA_Check_floating_object(), FLA_Check_if_vector(), FLA_Check_int_object(), FLA_Check_matrix_vector_dims(), FLA_Check_nonconstant_object(), and FLA_Check_square().

Referenced by FLA_Form_perm_matrix().

14 {
15  FLA_Error e_val;
16 
17  e_val = FLA_Check_int_object( p );
18  FLA_Check_error_code( e_val );
19 
20  e_val = FLA_Check_nonconstant_object( p );
21  FLA_Check_error_code( e_val );
22 
23  e_val = FLA_Check_floating_object( A );
24  FLA_Check_error_code( e_val );
25 
26  e_val = FLA_Check_nonconstant_object( A );
27  FLA_Check_error_code( e_val );
28 
29  e_val = FLA_Check_if_vector( p );
30  FLA_Check_error_code( e_val );
31 
32  e_val = FLA_Check_square( A );
33  FLA_Check_error_code( e_val );
34 
35  FLA_Check_matrix_vector_dims( FLA_NO_TRANSPOSE, A, p, p );
36  FLA_Check_error_code( e_val );
37 
38  return FLA_SUCCESS;
39 }
FLA_Error FLA_Check_int_object(FLA_Obj A)
Definition: FLA_Check.c:245
FLA_Error FLA_Check_if_vector(FLA_Obj A)
Definition: FLA_Check.c:383
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Error FLA_Check_nonconstant_object(FLA_Obj A)
Definition: FLA_Check.c:954
FLA_Error FLA_Check_matrix_vector_dims(FLA_Trans trans, FLA_Obj A, FLA_Obj x, FLA_Obj y)
Definition: FLA_Check.c:453
FLA_Error FLA_Check_floating_object(FLA_Obj A)
Definition: FLA_Check.c:232
FLA_Error FLA_Check_square(FLA_Obj A)
Definition: FLA_Check.c:363