libflame revision_anchor
Functions
FLA_Gemm_hc_unb_var2.c File Reference

(r)

Functions

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

Function Documentation

◆ FLA_Gemm_hc_unb_var2()

FLA_Error FLA_Gemm_hc_unb_var2 ( 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 CT, C0,
20 CB, c1t,
21 C2;
22
24
25 FLA_Part_1x2( A, &AL, &AR, 0, FLA_RIGHT );
26
27 FLA_Part_2x1( C, &CT,
28 &CB, 0, FLA_BOTTOM );
29
30 while ( FLA_Obj_width( AR ) < FLA_Obj_width( A ) ){
31
32 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &a1, /**/ &A2,
33 1, FLA_LEFT );
34
36 &c1t,
37 /* ** */ /* *** */
38 CB, &C2, 1, FLA_TOP );
39
40 /*------------------------------------------------------------*/
41
42 /* c1t = a1' * B + c1t */
43 /* c1t' = B' * a1 + c1t' */
45
46 /*------------------------------------------------------------*/
47
48 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ a1, A2,
49 FLA_RIGHT );
50
52 /* ** */ /* *** */
53 c1t,
54 &CB, C2, FLA_BOTTOM );
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_Gemvc_external(FLA_Trans transa, FLA_Conj conjx, FLA_Obj alpha, FLA_Obj A, FLA_Obj x, FLA_Obj beta, FLA_Obj y)
Definition FLA_Gemvc_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
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_Part_2x1(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t mb, FLA_Side side)
Definition FLA_View.c:76
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
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gemvc_external(), FLA_Obj_width(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), FLA_Scal_external(), and i.

Referenced by FLA_Gemm_hc().