libflame  revision_anchor
Functions
FLA_Gemm_nh_unb_var6.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Gemm_nh_unb_var6()

FLA_Error FLA_Gemm_nh_unb_var6 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16 {
17  FLA_Obj AL, AR, A0, a1, A2;
18 
19  FLA_Obj BL, BR, B0, b1, B2;
20 
21  FLA_Scal_external( beta, C );
22 
23  FLA_Part_1x2( A, &AL, &AR, 0, FLA_RIGHT );
24 
25  FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT );
26 
27  while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){
28 
29  FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &a1, /**/ &A2,
30  1, FLA_LEFT );
31 
32  FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &b1, /**/ &B2,
33  1, FLA_LEFT );
34 
35  /*------------------------------------------------------------*/
36 
37  /* C = a1 * b1' + C */
38  FLA_Gerc_external( FLA_NO_CONJUGATE, FLA_CONJUGATE, alpha, a1, b1, C );
39 
40  /*------------------------------------------------------------*/
41 
42  FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ a1, A2,
43  FLA_RIGHT );
44 
45  FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ b1, B2,
46  FLA_RIGHT );
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_Gerc_external(FLA_Conj conjx, FLA_Conj conjy, FLA_Obj alpha, FLA_Obj x, FLA_Obj y, FLA_Obj A)
Definition: FLA_Gerc_external.c:13
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_Gerc_external(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), and FLA_Scal_external().

Referenced by FLA_Gemm_nh().