libflame  revision_anchor
Functions
FLA_Gemm_nt_unb_var3.c File Reference

(r)

Functions

FLA_Error FLA_Gemm_nt_unb_var3 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 

Function Documentation

◆ FLA_Gemm_nt_unb_var3()

FLA_Error FLA_Gemm_nt_unb_var3 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16 {
17  FLA_Obj BT, B0,
18  BB, b1t,
19  B2;
20 
21  FLA_Obj CL, CR, C0, c1, C2;
22 
23  FLA_Scal_external( beta, C );
24 
25  FLA_Part_2x1( B, &BT,
26  &BB, 0, FLA_TOP );
27 
28  FLA_Part_1x2( C, &CL, &CR, 0, FLA_LEFT );
29 
30  while ( FLA_Obj_length( BT ) < FLA_Obj_length( B ) ){
31 
32  FLA_Repart_2x1_to_3x1( BT, &B0,
33  /* ** */ /* *** */
34  &b1t,
35  BB, &B2, 1, FLA_BOTTOM );
36 
37  FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, /**/ &c1, &C2,
38  1, FLA_RIGHT );
39 
40  /*------------------------------------------------------------*/
41 
42  /* c1 = A * b1t + c1 */
43  FLA_Gemv_external( FLA_NO_TRANSPOSE, alpha, A, b1t, FLA_ONE, c1 );
44 
45 
46  /*------------------------------------------------------------*/
47 
48  FLA_Cont_with_3x1_to_2x1( &BT, B0,
49  b1t,
50  /* ** */ /* *** */
51  &BB, B2, FLA_TOP );
52 
53  FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, c1, /**/ C2,
54  FLA_LEFT );
55 
56  }
57 
58  return FLA_SUCCESS;
59 }
FLA_Error FLA_Scal_external(FLA_Obj alpha, FLA_Obj A)
Definition: FLA_Scal_external.c:13
FLA_Error FLA_Gemv_external(FLA_Trans transa, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition: FLA_Gemv_external.c:13
FLA_Obj FLA_ONE
Definition: FLA_Init.c:18
FLA_Error FLA_Cont_with_3x1_to_2x1(FLA_Obj *AT, FLA_Obj A0, FLA_Obj A1, FLA_Obj *AB, FLA_Obj A2, FLA_Side side)
Definition: FLA_View.c:428
FLA_Error FLA_Repart_2x1_to_3x1(FLA_Obj AT, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj AB, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition: FLA_View.c:226
FLA_Error FLA_Cont_with_1x3_to_1x2(FLA_Obj *AL, FLA_Obj *AR, FLA_Obj A0, FLA_Obj A1, FLA_Obj A2, FLA_Side side)
Definition: FLA_View.c:475
FLA_Error FLA_Part_1x2(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition: FLA_View.c:110
FLA_Error FLA_Part_2x1(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition: FLA_View.c:76
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116
FLA_Error FLA_Repart_1x2_to_1x3(FLA_Obj AL, FLA_Obj AR, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition: FLA_View.c:267
Definition: FLA_type_defs.h:159

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gemv_external(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and FLA_Scal_external().

Referenced by FLA_Gemm_nt().