libflame revision_anchor
Functions
FLA_Dot_external.c File Reference

(r)

Functions

FLA_Error FLA_Dot_external (FLA_Obj x, FLA_Obj y, FLA_Obj rho)
 

Function Documentation

◆ FLA_Dot_external()

FLA_Error FLA_Dot_external ( FLA_Obj  x,
FLA_Obj  y,
FLA_Obj  rho 
)
14{
15 FLA_Datatype datatype;
16 int num_elem;
17 int inc_x;
18 int inc_y;
20
22 FLA_Dot_check( x, y, rho );
23
24 if ( FLA_Obj_has_zero_dim( x ) ) return FLA_SUCCESS;
25
26 datatype = FLA_Obj_datatype( x );
27
31
33
34 switch ( datatype ){
35
36 case FLA_FLOAT:
37 {
38 float *buff_x = ( float * ) FLA_FLOAT_PTR( x );
39 float *buff_y = ( float * ) FLA_FLOAT_PTR( y );
40 float *buff_rho = ( float * ) FLA_FLOAT_PTR( rho );
41
46 buff_rho );
47
48 break;
49 }
50
51 case FLA_DOUBLE:
52 {
53 double *buff_x = ( double * ) FLA_DOUBLE_PTR( x );
54 double *buff_y = ( double * ) FLA_DOUBLE_PTR( y );
55 double *buff_rho = ( double * ) FLA_DOUBLE_PTR( rho );
56
61 buff_rho );
62
63 break;
64 }
65
66 case FLA_COMPLEX:
67 {
71
76 buff_rho );
77
78 break;
79 }
80
82 {
86
91 buff_rho );
92
93 break;
94 }
95
96 }
97
98 return FLA_SUCCESS;
99}
FLA_Error FLA_Dot_check(FLA_Obj x, FLA_Obj y, FLA_Obj rho)
Definition FLA_Dot_check.c:13
FLA_Bool FLA_Obj_has_zero_dim(FLA_Obj A)
Definition FLA_Query.c:400
unsigned int FLA_Check_error_level(void)
Definition FLA_Check.c:18
void FLA_Param_map_flame_to_blis_conj(FLA_Conj conj, conj1_t *blis_conj)
Definition FLA_Param.c:269
dim_t FLA_Obj_vector_inc(FLA_Obj obj)
Definition FLA_Query.c:145
dim_t FLA_Obj_vector_dim(FLA_Obj obj)
Definition FLA_Query.c:137
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition FLA_Query.c:13
int FLA_Datatype
Definition FLA_type_defs.h:49
int i
Definition bl1_axmyv2.c:145
* rho
Definition bl1_axpyv2bdotaxpy.c:322
void bl1_cdot(conj1_t conj, int n, scomplex *x, int incx, scomplex *y, int incy, scomplex *rho)
Definition bl1_dot.c:39
void bl1_ddot(conj1_t conj, int n, double *x, int incx, double *y, int incy, double *rho)
Definition bl1_dot.c:26
void bl1_sdot(conj1_t conj, int n, float *x, int incx, float *y, int incy, float *rho)
Definition bl1_dot.c:13
void bl1_zdot(conj1_t conj, int n, dcomplex *x, int incx, dcomplex *y, int incy, dcomplex *rho)
Definition bl1_dot.c:65
conj1_t
Definition blis_type_defs.h:80
Definition blis_type_defs.h:138
Definition blis_type_defs.h:133

References bl1_cdot(), bl1_ddot(), bl1_sdot(), bl1_zdot(), FLA_Check_error_level(), FLA_Dot_check(), FLA_Obj_datatype(), FLA_Obj_has_zero_dim(), FLA_Obj_vector_dim(), FLA_Obj_vector_inc(), FLA_Param_map_flame_to_blis_conj(), i, and rho.

Referenced by FLA_Dot().