libflame  revision_anchor
Functions
FLA_Gemm_hn_unb_var3.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Gemm_hn_unb_var3()

FLA_Error FLA_Gemm_hn_unb_var3 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16 {
17  FLA_Obj BL, BR, B0, b1, B2;
18 
19  FLA_Obj CL, CR, C0, c1, C2;
20 
21  FLA_Scal_external( beta, C );
22 
23  FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT );
24 
25  FLA_Part_1x2( C, &CL, &CR, 0, FLA_LEFT );
26 
27  while ( FLA_Obj_width( BL ) < FLA_Obj_width( B ) ){
28 
29  FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &b1, &B2,
30  1, FLA_RIGHT );
31 
32  FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, /**/ &c1, &C2,
33  1, FLA_RIGHT );
34 
35  /*------------------------------------------------------------*/
36 
37  /* c1 = A' * b1 + c1 */
38  FLA_Gemv_external( FLA_CONJ_TRANSPOSE, alpha, A, b1, FLA_ONE, c1 );
39 
40  /*------------------------------------------------------------*/
41 
42  FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, b1, /**/ B2,
43  FLA_LEFT );
44 
45  FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, c1, /**/ C2,
46  FLA_LEFT );
47 
48  }
49 
50  return FLA_SUCCESS;
51 }
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_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
dim_t FLA_Obj_width(FLA_Obj obj)
Definition: FLA_Query.c:123
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_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_Gemv_external(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), and FLA_Scal_external().

Referenced by FLA_Gemm_hn().