libflame  revision_anchor
Functions
FLA_Trinv_uu_opt_var2.c File Reference

(r)

Functions

FLA_Error FLA_Trinv_uu_opt_var2 (FLA_Obj A)
 
FLA_Error FLA_Trinv_uu_ops_var2 (int mn_A, float *buff_A, int rs_A, int cs_A)
 
FLA_Error FLA_Trinv_uu_opd_var2 (int mn_A, double *buff_A, int rs_A, int cs_A)
 
FLA_Error FLA_Trinv_uu_opc_var2 (int mn_A, scomplex *buff_A, int rs_A, int cs_A)
 
FLA_Error FLA_Trinv_uu_opz_var2 (int mn_A, dcomplex *buff_A, int rs_A, int cs_A)
 

Function Documentation

◆ FLA_Trinv_uu_opc_var2()

FLA_Error FLA_Trinv_uu_opc_var2 ( int  mn_A,
scomplex buff_A,
int  rs_A,
int  cs_A 
)
154 {
155  scomplex* buff_m1 = FLA_COMPLEX_PTR( FLA_MINUS_ONE );
156  int i;
157 
158  for ( i = 0; i < mn_A; ++i )
159  {
160  scomplex* a12t = buff_A + (i+1)*cs_A + (i )*rs_A;
161  scomplex* A22 = buff_A + (i+1)*cs_A + (i+1)*rs_A;
162 
163  int mn_ahead = mn_A - i - 1;
164 
165  /*------------------------------------------------------------*/
166 
167  // FLA_Trsv_external( FLA_UPPER_TRIANGULAR, FLA_TRANSPOSE, FLA_UNIT_DIAG, A22, a12t );
171  mn_ahead,
172  A22, rs_A, cs_A,
173  a12t, cs_A );
174 
175  // FLA_Scal_external( FLA_MINUS_ONE, a12t );
177  mn_ahead,
178  buff_m1,
179  a12t, cs_A );
180 
181  /*------------------------------------------------------------*/
182 
183  }
184 
185  return FLA_SUCCESS;
186 }
FLA_Obj FLA_MINUS_ONE
Definition: FLA_Init.c:22
int i
Definition: bl1_axmyv2.c:145
void bl1_cscalv(conj1_t conj, int n, scomplex *alpha, scomplex *x, int incx)
Definition: bl1_scalv.c:46
void bl1_ctrsv(uplo1_t uplo, trans1_t trans, diag1_t diag, int m, scomplex *a, int a_rs, int a_cs, scomplex *x, int incx)
Definition: bl1_trsv.c:99
@ BLIS1_UPPER_TRIANGULAR
Definition: blis_type_defs.h:63
@ BLIS1_UNIT_DIAG
Definition: blis_type_defs.h:75
@ BLIS1_TRANSPOSE
Definition: blis_type_defs.h:55
@ BLIS1_NO_CONJUGATE
Definition: blis_type_defs.h:81
Definition: blis_type_defs.h:133

References bl1_cscalv(), bl1_ctrsv(), BLIS1_NO_CONJUGATE, BLIS1_TRANSPOSE, BLIS1_UNIT_DIAG, BLIS1_UPPER_TRIANGULAR, FLA_MINUS_ONE, and i.

Referenced by FLA_Trinv_uu_opt_var2().

◆ FLA_Trinv_uu_opd_var2()

FLA_Error FLA_Trinv_uu_opd_var2 ( int  mn_A,
double *  buff_A,
int  rs_A,
int  cs_A 
)
116 {
117  double* buff_m1 = FLA_DOUBLE_PTR( FLA_MINUS_ONE );
118  int i;
119 
120  for ( i = 0; i < mn_A; ++i )
121  {
122  double* a12t = buff_A + (i+1)*cs_A + (i )*rs_A;
123  double* A22 = buff_A + (i+1)*cs_A + (i+1)*rs_A;
124 
125  int mn_ahead = mn_A - i - 1;
126 
127  /*------------------------------------------------------------*/
128 
129  // FLA_Trsv_external( FLA_UPPER_TRIANGULAR, FLA_TRANSPOSE, FLA_UNIT_DIAG, A22, a12t );
133  mn_ahead,
134  A22, rs_A, cs_A,
135  a12t, cs_A );
136 
137  // FLA_Scal_external( FLA_MINUS_ONE, a12t );
139  mn_ahead,
140  buff_m1,
141  a12t, cs_A );
142 
143  /*------------------------------------------------------------*/
144 
145  }
146 
147  return FLA_SUCCESS;
148 }
void bl1_dscalv(conj1_t conj, int n, double *alpha, double *x, int incx)
Definition: bl1_scalv.c:24
void bl1_dtrsv(uplo1_t uplo, trans1_t trans, diag1_t diag, int m, double *a, int a_rs, int a_cs, double *x, int incx)
Definition: bl1_trsv.c:56

References bl1_dscalv(), bl1_dtrsv(), BLIS1_NO_CONJUGATE, BLIS1_TRANSPOSE, BLIS1_UNIT_DIAG, BLIS1_UPPER_TRIANGULAR, FLA_MINUS_ONE, and i.

Referenced by FLA_Trinv_uu_opt_var2().

◆ FLA_Trinv_uu_ops_var2()

FLA_Error FLA_Trinv_uu_ops_var2 ( int  mn_A,
float *  buff_A,
int  rs_A,
int  cs_A 
)
78 {
79  float* buff_m1 = FLA_FLOAT_PTR( FLA_MINUS_ONE );
80  int i;
81 
82  for ( i = 0; i < mn_A; ++i )
83  {
84  float* a12t = buff_A + (i+1)*cs_A + (i )*rs_A;
85  float* A22 = buff_A + (i+1)*cs_A + (i+1)*rs_A;
86 
87  int mn_ahead = mn_A - i - 1;
88 
89  /*------------------------------------------------------------*/
90 
91  // FLA_Trsv_external( FLA_UPPER_TRIANGULAR, FLA_TRANSPOSE, FLA_UNIT_DIAG, A22, a12t );
95  mn_ahead,
96  A22, rs_A, cs_A,
97  a12t, cs_A );
98 
99  // FLA_Scal_external( FLA_MINUS_ONE, a12t );
101  mn_ahead,
102  buff_m1,
103  a12t, cs_A );
104 
105  /*------------------------------------------------------------*/
106 
107  }
108 
109  return FLA_SUCCESS;
110 }
void bl1_sscalv(conj1_t conj, int n, float *alpha, float *x, int incx)
Definition: bl1_scalv.c:13
void bl1_strsv(uplo1_t uplo, trans1_t trans, diag1_t diag, int m, float *a, int a_rs, int a_cs, float *x, int incx)
Definition: bl1_trsv.c:13

References bl1_sscalv(), bl1_strsv(), BLIS1_NO_CONJUGATE, BLIS1_TRANSPOSE, BLIS1_UNIT_DIAG, BLIS1_UPPER_TRIANGULAR, FLA_MINUS_ONE, and i.

Referenced by FLA_Trinv_uu_opt_var2().

◆ FLA_Trinv_uu_opt_var2()

FLA_Error FLA_Trinv_uu_opt_var2 ( FLA_Obj  A)
16 {
17  FLA_Datatype datatype;
18  int mn_A;
19  int rs_A, cs_A;
20 
21  datatype = FLA_Obj_datatype( A );
22 
23  mn_A = FLA_Obj_length( A );
24  rs_A = FLA_Obj_row_stride( A );
25  cs_A = FLA_Obj_col_stride( A );
26 
27 
28  switch ( datatype )
29  {
30  case FLA_FLOAT:
31  {
32  float* buff_A = FLA_FLOAT_PTR( A );
33 
35  buff_A, rs_A, cs_A );
36 
37  break;
38  }
39 
40  case FLA_DOUBLE:
41  {
42  double* buff_A = FLA_DOUBLE_PTR( A );
43 
45  buff_A, rs_A, cs_A );
46 
47  break;
48  }
49 
50  case FLA_COMPLEX:
51  {
52  scomplex* buff_A = FLA_COMPLEX_PTR( A );
53 
55  buff_A, rs_A, cs_A );
56 
57  break;
58  }
59 
60  case FLA_DOUBLE_COMPLEX:
61  {
62  dcomplex* buff_A = FLA_DOUBLE_COMPLEX_PTR( A );
63 
65  buff_A, rs_A, cs_A );
66 
67  break;
68  }
69  }
70 
71  return FLA_SUCCESS;
72 }
FLA_Error FLA_Trinv_uu_opd_var2(int mn_A, double *buff_A, int rs_A, int cs_A)
Definition: FLA_Trinv_uu_opt_var2.c:114
FLA_Error FLA_Trinv_uu_ops_var2(int mn_A, float *buff_A, int rs_A, int cs_A)
Definition: FLA_Trinv_uu_opt_var2.c:76
FLA_Error FLA_Trinv_uu_opz_var2(int mn_A, dcomplex *buff_A, int rs_A, int cs_A)
Definition: FLA_Trinv_uu_opt_var2.c:190
FLA_Error FLA_Trinv_uu_opc_var2(int mn_A, scomplex *buff_A, int rs_A, int cs_A)
Definition: FLA_Trinv_uu_opt_var2.c:152
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
dim_t FLA_Obj_col_stride(FLA_Obj obj)
Definition: FLA_Query.c:174
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition: FLA_Query.c:13
int FLA_Datatype
Definition: FLA_type_defs.h:49
Definition: blis_type_defs.h:138

References FLA_Obj_col_stride(), FLA_Obj_datatype(), FLA_Obj_length(), FLA_Obj_row_stride(), FLA_Trinv_uu_opc_var2(), FLA_Trinv_uu_opd_var2(), FLA_Trinv_uu_ops_var2(), and FLA_Trinv_uu_opz_var2().

Referenced by FLA_Trinv_uu().

◆ FLA_Trinv_uu_opz_var2()

FLA_Error FLA_Trinv_uu_opz_var2 ( int  mn_A,
dcomplex buff_A,
int  rs_A,
int  cs_A 
)
192 {
193  dcomplex* buff_m1 = FLA_DOUBLE_COMPLEX_PTR( FLA_MINUS_ONE );
194  int i;
195 
196  for ( i = 0; i < mn_A; ++i )
197  {
198  dcomplex* a12t = buff_A + (i+1)*cs_A + (i )*rs_A;
199  dcomplex* A22 = buff_A + (i+1)*cs_A + (i+1)*rs_A;
200 
201  int mn_ahead = mn_A - i - 1;
202 
203  /*------------------------------------------------------------*/
204 
205  // FLA_Trsv_external( FLA_UPPER_TRIANGULAR, FLA_TRANSPOSE, FLA_UNIT_DIAG, A22, a12t );
209  mn_ahead,
210  A22, rs_A, cs_A,
211  a12t, cs_A );
212 
213  // FLA_Scal_external( FLA_MINUS_ONE, a12t );
215  mn_ahead,
216  buff_m1,
217  a12t, cs_A );
218 
219  /*------------------------------------------------------------*/
220 
221  }
222 
223  return FLA_SUCCESS;
224 }
void bl1_zscalv(conj1_t conj, int n, dcomplex *alpha, dcomplex *x, int incx)
Definition: bl1_scalv.c:72
void bl1_ztrsv(uplo1_t uplo, trans1_t trans, diag1_t diag, int m, dcomplex *a, int a_rs, int a_cs, dcomplex *x, int incx)
Definition: bl1_trsv.c:177

References bl1_zscalv(), bl1_ztrsv(), BLIS1_NO_CONJUGATE, BLIS1_TRANSPOSE, BLIS1_UNIT_DIAG, BLIS1_UPPER_TRIANGULAR, FLA_MINUS_ONE, and i.

Referenced by FLA_Trinv_uu_opt_var2().