libflame  revision_anchor
Functions
FLA_Gemv_internal_check.c File Reference

(r)

Functions

FLA_Error FLA_Gemv_internal_check (FLA_Trans transa, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y, fla_gemv_t *cntl)
 

Function Documentation

◆ FLA_Gemv_internal_check()

FLA_Error FLA_Gemv_internal_check ( FLA_Trans  transa,
FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  x,
FLA_Obj  beta,
FLA_Obj  y,
fla_gemv_t cntl 
)

References FLA_Check_identical_object_elemtype(), FLA_Check_matrix_vector_dims(), and FLA_Check_null_pointer().

Referenced by FLA_Gemv_internal().

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_matrix_vector_dims( transa, A, x, y );
32  FLA_Check_error_code( e_val );
33 
34  return FLA_SUCCESS;
35 }
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Error FLA_Check_identical_object_elemtype(FLA_Obj A, FLA_Obj B)
Definition: FLA_Check.c:987
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_null_pointer(void *ptr)
Definition: FLA_Check.c:518