libflame revision_anchor
FLA_Axpy_check.c File Reference

(r)

Functions

FLA_Error FLA_Axpy_check (FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
 

Function Documentation

◆ FLA_Axpy_check()

FLA_Error FLA_Axpy_check ( FLA_Obj alpha,
FLA_Obj A,
FLA_Obj B )
14{
15 FLA_Error e_val;
16
17 e_val = FLA_Check_floating_object( A );
18 FLA_Check_error_code( e_val );
19
21 FLA_Check_error_code( e_val );
22
24 FLA_Check_error_code( e_val );
25
26 e_val = FLA_Check_consistent_object_datatype( A, alpha );
27 FLA_Check_error_code( e_val );
28
29 if ( FLA_Obj_is_vector( A ) && FLA_Obj_is_vector( B ) )
30 {
31 e_val = FLA_Check_equal_vector_dims( A, B );
32 FLA_Check_error_code( e_val );
33 }
34 else
35 {
36 e_val = FLA_Check_conformal_dims( FLA_NO_TRANSPOSE, A, B );
37 FLA_Check_error_code( e_val );
38 }
39
40 return FLA_SUCCESS;
41}
FLA_Error FLA_Check_conformal_dims(FLA_Trans trans, FLA_Obj A, FLA_Obj B)
Definition FLA_Check.c:393
FLA_Bool FLA_Obj_is_vector(FLA_Obj A)
Definition FLA_Query.c:388
FLA_Error FLA_Check_consistent_object_datatype(FLA_Obj A, FLA_Obj B)
Definition FLA_Check.c:339
FLA_Error FLA_Check_nonconstant_object(FLA_Obj A)
Definition FLA_Check.c:954
FLA_Error FLA_Check_equal_vector_dims(FLA_Obj x, FLA_Obj y)
Definition FLA_Check.c:477
FLA_Error FLA_Check_identical_object_datatype(FLA_Obj A, FLA_Obj B)
Definition FLA_Check.c:967
FLA_Error FLA_Check_floating_object(FLA_Obj A)
Definition FLA_Check.c:232
int FLA_Error
Definition FLA_type_defs.h:47

References FLA_Check_conformal_dims(), FLA_Check_consistent_object_datatype(), FLA_Check_equal_vector_dims(), FLA_Check_floating_object(), FLA_Check_identical_object_datatype(), FLA_Check_nonconstant_object(), and FLA_Obj_is_vector().

Referenced by FLA_Axpy(), FLA_Axpy_external(), FLA_Axpy_external_gpu(), and FLASH_Axpy().