libflame revision_anchor
Functions
FLA_Trsmsx_external.c File Reference

(r)

Functions

FLA_Error FLA_Trsmsx_external (FLA_Side side, FLA_Uplo uplo, FLA_Trans trans, FLA_Diag diag, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 

Function Documentation

◆ FLA_Trsmsx_external()

FLA_Error FLA_Trsmsx_external ( FLA_Side  side,
FLA_Uplo  uplo,
FLA_Trans  trans,
FLA_Diag  diag,
FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
14{
15 FLA_Datatype datatype;
16 int m_B, n_B;
17 int rs_A, cs_A;
18 int rs_B, cs_B;
19 int rs_C, cs_C;
24
26 FLA_Trsmsx_check( side, uplo, trans, diag, alpha, A, B, beta, C );
27
28 if ( FLA_Obj_has_zero_dim( B ) ) return FLA_SUCCESS;
29
30 datatype = FLA_Obj_datatype( A );
31
34
35 m_B = FLA_Obj_length( B );
36 n_B = FLA_Obj_width( B );
39
42
47
48
49 switch( datatype ){
50
51 case FLA_FLOAT:
52 {
53 float *buff_A = ( float * ) FLA_FLOAT_PTR( A );
54 float *buff_B = ( float * ) FLA_FLOAT_PTR( B );
55 float *buff_C = ( float * ) FLA_FLOAT_PTR( C );
56 float *buff_alpha = ( float * ) FLA_FLOAT_PTR( alpha );
57 float *buff_beta = ( float * ) FLA_FLOAT_PTR( beta );
58
60 blis_uplo,
63 m_B,
64 n_B,
66 buff_A, rs_A, cs_A,
67 buff_B, rs_B, cs_B,
69 buff_C, rs_C, cs_C );
70
71 break;
72 }
73
74 case FLA_DOUBLE:
75 {
76 double *buff_A = ( double * ) FLA_DOUBLE_PTR( A );
77 double *buff_B = ( double * ) FLA_DOUBLE_PTR( B );
78 double *buff_C = ( double * ) FLA_DOUBLE_PTR( C );
79 double *buff_alpha = ( double * ) FLA_DOUBLE_PTR( alpha );
80 double *buff_beta = ( double * ) FLA_DOUBLE_PTR( beta );
81
83 blis_uplo,
86 m_B,
87 n_B,
89 buff_A, rs_A, cs_A,
90 buff_B, rs_B, cs_B,
92 buff_C, rs_C, cs_C );
93
94 break;
95 }
96
97 case FLA_COMPLEX:
98 {
104
106 blis_uplo,
108 blis_diag,
109 m_B,
110 n_B,
112 buff_A, rs_A, cs_A,
113 buff_B, rs_B, cs_B,
114 buff_beta,
115 buff_C, rs_C, cs_C );
116
117 break;
118 }
119
120
122 {
128
130 blis_uplo,
132 blis_diag,
133 m_B,
134 n_B,
136 buff_A, rs_A, cs_A,
137 buff_B, rs_B, cs_B,
138 buff_beta,
139 buff_C, rs_C, cs_C );
140
141 break;
142 }
143
144 }
145
146 return FLA_SUCCESS;
147}
FLA_Error FLA_Trsmsx_check(FLA_Side side, FLA_Uplo uplo, FLA_Trans trans, FLA_Diag diag, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
Definition FLA_Trsmsx_check.c:13
void FLA_Param_map_flame_to_blis_side(FLA_Uplo side, side1_t *blis_side)
Definition FLA_Param.c:301
void FLA_Param_map_flame_to_blis_diag(FLA_Diag diag, diag1_t *blis_diag)
Definition FLA_Param.c:317
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
FLA_Bool FLA_Obj_has_zero_dim(FLA_Obj A)
Definition FLA_Query.c:400
dim_t FLA_Obj_row_stride(FLA_Obj obj)
Definition FLA_Query.c:167
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116
void FLA_Param_map_flame_to_blis_trans(FLA_Trans trans, trans1_t *blis_trans)
Definition FLA_Param.c:245
dim_t FLA_Obj_col_stride(FLA_Obj obj)
Definition FLA_Query.c:174
unsigned int FLA_Check_error_level(void)
Definition FLA_Check.c:18
void FLA_Param_map_flame_to_blis_uplo(FLA_Uplo uplo, uplo1_t *blis_uplo)
Definition FLA_Param.c:285
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
void bl1_dtrsmsx(side1_t side, uplo1_t uplo, trans1_t trans, diag1_t diag, int m, int n, double *alpha, double *a, int a_rs, int a_cs, double *b, int b_rs, int b_cs, double *beta, double *c, int c_rs, int c_cs)
Definition bl1_trsmsx.c:119
void bl1_ztrsmsx(side1_t side, uplo1_t uplo, trans1_t trans, diag1_t diag, int m, int n, dcomplex *alpha, dcomplex *a, int a_rs, int a_cs, dcomplex *b, int b_rs, int b_cs, dcomplex *beta, dcomplex *c, int c_rs, int c_cs)
Definition bl1_trsmsx.c:331
void bl1_strsmsx(side1_t side, uplo1_t uplo, trans1_t trans, diag1_t diag, int m, int n, float *alpha, float *a, int a_rs, int a_cs, float *b, int b_rs, int b_cs, float *beta, float *c, int c_rs, int c_cs)
Definition bl1_trsmsx.c:13
void bl1_ctrsmsx(side1_t side, uplo1_t uplo, trans1_t trans, diag1_t diag, int m, int n, scomplex *alpha, scomplex *a, int a_rs, int a_cs, scomplex *b, int b_rs, int b_cs, scomplex *beta, scomplex *c, int c_rs, int c_cs)
Definition bl1_trsmsx.c:225
uplo1_t
Definition blis_type_defs.h:61
diag1_t
Definition blis_type_defs.h:73
trans1_t
Definition blis_type_defs.h:53
side1_t
Definition blis_type_defs.h:67
Definition blis_type_defs.h:138
Definition blis_type_defs.h:133

References bl1_ctrsmsx(), bl1_dtrsmsx(), bl1_strsmsx(), bl1_ztrsmsx(), FLA_Check_error_level(), FLA_Obj_col_stride(), FLA_Obj_datatype(), FLA_Obj_has_zero_dim(), FLA_Obj_length(), FLA_Obj_row_stride(), FLA_Obj_width(), FLA_Param_map_flame_to_blis_diag(), FLA_Param_map_flame_to_blis_side(), FLA_Param_map_flame_to_blis_trans(), FLA_Param_map_flame_to_blis_uplo(), FLA_Trsmsx_check(), and i.

Referenced by FLA_Trsmsx().