libflame revision_anchor
Functions
FLA_Gemm_hh.h File Reference

(r)

Go to the source code of this file.

Functions

FLA_Error FLA_Gemm_hh_blk_var1 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_blk_var2 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_blk_var3 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_blk_var4 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_blk_var5 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_blk_var6 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 
FLA_Error FLA_Gemm_hh_unb_var1 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 
FLA_Error FLA_Gemm_hh_unb_var2 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 
FLA_Error FLA_Gemm_hh_unb_var3 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 
FLA_Error FLA_Gemm_hh_unb_var4 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 
FLA_Error FLA_Gemm_hh_unb_var5 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 
FLA_Error FLA_Gemm_hh_unb_var6 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C)
 

Function Documentation

◆ FLA_Gemm_hh_blk_var1()

FLA_Error FLA_Gemm_hh_blk_var1 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
14{
15 FLA_Obj AL, AR, A0, A1, A2;
16
17 FLA_Obj CT, C0,
18 CB, C1,
19 C2;
20
21 dim_t b;
22
23 FLA_Part_1x2( A, &AL, &AR, 0, FLA_LEFT );
24
25 FLA_Part_2x1( C, &CT,
26 &CB, 0, FLA_TOP );
27
28 while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){
29
31
32 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, /**/ &A1, &A2,
33 b, FLA_RIGHT );
34
36 /* ** */ /* ** */
37 &C1,
38 CB, &C2, b, FLA_BOTTOM );
39
40 /*------------------------------------------------------------*/
41
42 /* C1 = alpha * A1' * B' + C1; */
44 alpha, A1, B, beta, C1,
45 FLA_Cntl_sub_gemm( cntl ) );
46
47 /*------------------------------------------------------------*/
48
49 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, A1, /**/ A2,
50 FLA_LEFT );
51
53 C1,
54 /* ** */ /* ** */
55 &CB, C2, FLA_TOP );
56
57 }
58
59 return FLA_SUCCESS;
60}
FLA_Error FLA_Gemm_internal(FLA_Trans transa, FLA_Trans transb, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
Definition FLA_Gemm_internal.c:16
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
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition FLA_Blocksize.c:234
unsigned long dim_t
Definition FLA_type_defs.h:71
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_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_blk_var2()

FLA_Error FLA_Gemm_hh_blk_var2 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
16{
17 FLA_Obj AL, AR, A0, A1, A2;
18
19 FLA_Obj CT, C0,
20 CB, C1,
21 C2;
22
23 dim_t b;
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
33
34 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, &A1, /**/ &A2,
35 b, FLA_LEFT );
36
38 &C1,
39 /* ** */ /* ** */
40 CB, &C2, b, FLA_TOP );
41
42 /*------------------------------------------------------------*/
43
44 /* C1 = alpha * A1' * B' + C1; */
46 alpha, A1, B, beta, C1,
47 FLA_Cntl_sub_gemm( cntl ) );
48
49 /*------------------------------------------------------------*/
50
51 FLA_Cont_with_1x3_to_1x2( &AL, /**/ &AR, A0, /**/ A1, A2,
52 FLA_RIGHT );
53
55 /* ** */ /* ** */
56 C1,
57 &CB, C2, FLA_BOTTOM );
58
59 }
60
61 return FLA_SUCCESS;
62}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_blk_var3()

FLA_Error FLA_Gemm_hh_blk_var3 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
14{
15 FLA_Obj BT, B0,
16 BB, B1,
17 B2;
18
19 FLA_Obj CL, CR, C0, C1, C2;
20
21 dim_t b;
22
23 FLA_Part_2x1( B, &BT,
24 &BB, 0, FLA_TOP );
25
26 FLA_Part_1x2( C, &CL, &CR, 0, FLA_LEFT );
27
28 while ( FLA_Obj_length( BT ) < FLA_Obj_length( B ) ){
29
31
33 /* ** */ /* ** */
34 &B1,
35 BB, &B2, b, FLA_BOTTOM );
36
37 FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, /**/ &C1, &C2,
38 b, FLA_RIGHT );
39
40 /*------------------------------------------------------------*/
41
42 /* C1 = alpha * A' * B1' + C1; */
44 alpha, A, B1, beta, C1,
45 FLA_Cntl_sub_gemm( cntl ) );
46
47 /*------------------------------------------------------------*/
48
50 B1,
51 /* ** */ /* ** */
52 &BB, B2, FLA_TOP );
53
54 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, C1, /**/ C2,
55 FLA_LEFT );
56
57 }
58
59 return FLA_SUCCESS;
60}
dim_t FLA_Obj_length(FLA_Obj obj)
Definition FLA_Query.c:116

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_blk_var4()

FLA_Error FLA_Gemm_hh_blk_var4 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
16{
17 FLA_Obj BT, B0,
18 BB, B1,
19 B2;
20
21 FLA_Obj CL, CR, C0, C1, C2;
22
23 dim_t b;
24
25 FLA_Part_2x1( B, &BT,
26 &BB, 0, FLA_BOTTOM );
27
28 FLA_Part_1x2( C, &CL, &CR, 0, FLA_RIGHT );
29
30 while ( FLA_Obj_length( BB ) < FLA_Obj_length( B ) ){
31
33
35 &B1,
36 /* ** */ /* ** */
37 BB, &B2, b, FLA_TOP );
38
39 FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, &C1, /**/ &C2,
40 b, FLA_LEFT );
41
42 /*------------------------------------------------------------*/
43
44 /* C1 = alpha * A' * B1' + C1; */
46 alpha, A, B1, beta, C1,
47 FLA_Cntl_sub_gemm( cntl ) );
48
49 /*------------------------------------------------------------*/
50
52 /* ** */ /* ** */
53 B1,
54 &BB, B2, FLA_BOTTOM );
55
56 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, /**/ C1, C2,
57 FLA_RIGHT );
58
59 }
60
61 return FLA_SUCCESS;
62}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_length(), FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_blk_var5()

FLA_Error FLA_Gemm_hh_blk_var5 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
14{
15 FLA_Obj AT, A0,
16 AB, A1,
17 A2;
18
19 FLA_Obj BL, BR, B0, B1, B2;
20
21 dim_t b;
22
24 FLA_Cntl_sub_scal( cntl ) );
25
26 FLA_Part_2x1( A, &AT,
27 &AB, 0, FLA_TOP );
28
29 FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT );
30
31 while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){
32
34
36 /* ** */ /* ** */
37 &A1,
38 AB, &A2, b, FLA_BOTTOM );
39
40 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &B1, &B2,
41 b, FLA_RIGHT );
42
43 /*------------------------------------------------------------*/
44
45 /* C = alpha * A1' * B1' + C; */
47 alpha, A1, B1, FLA_ONE, C,
48 FLA_Cntl_sub_gemm( cntl ) );
49
50 /*------------------------------------------------------------*/
51
53 A1,
54 /* ** */ /* ** */
55 &AB, A2, FLA_TOP );
56
57 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, B1, /**/ B2,
58 FLA_LEFT );
59
60 }
61
62 return FLA_SUCCESS;
63}
FLA_Error FLA_Scal_internal(FLA_Obj alpha, FLA_Obj A, fla_scal_t *cntl)
Definition FLA_Scal_internal.c:16
FLA_Obj FLA_ONE
Definition FLA_Init.c:18

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), FLA_Scal_internal(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_blk_var6()

FLA_Error FLA_Gemm_hh_blk_var6 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
16{
17 FLA_Obj AT, A0,
18 AB, A1,
19 A2;
20
21 FLA_Obj BL, BR, B0, B1, B2;
22
23 dim_t b;
24
26 FLA_Cntl_sub_scal( cntl ) );
27
28 FLA_Part_2x1( A, &AT,
29 &AB, 0, FLA_BOTTOM );
30
31 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT );
32
33 while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){
34
36
38 &A1,
39 /* ** */ /* ** */
40 AB, &A2, b, FLA_TOP );
41
42 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &B1, /**/ &B2,
43 b, FLA_LEFT );
44
45 /*------------------------------------------------------------*/
46
47 /* C = alpha * A1' * B1' + C; */
49 alpha, A1, B1, FLA_ONE, C,
50 FLA_Cntl_sub_gemm( cntl ) );
51
52 /*------------------------------------------------------------*/
53
55 /* ** */ /* ** */
56 A1,
57 &AB, A2, FLA_BOTTOM );
58
59 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ B1, B2,
60 FLA_RIGHT );
61
62 }
63
64 return FLA_SUCCESS;
65}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_length(), FLA_ONE, FLA_Part_1x2(), FLA_Part_2x1(), FLA_Repart_1x2_to_1x3(), FLA_Repart_2x1_to_3x1(), FLA_Scal_internal(), and i.

Referenced by FLA_Gemm_hh().

◆ FLA_Gemm_hh_unb_var1()

FLA_Error FLA_Gemm_hh_unb_var1 ( 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_LEFT );
26
27 FLA_Part_2x1( C, &CT,
28 &CB, 0, FLA_TOP );
29
30 while ( FLA_Obj_width( AL ) < FLA_Obj_width( A ) ){
31
32 FLA_Repart_1x2_to_1x3( AL, /**/ AR, &A0, /**/ &a1, &A2,
33 1, FLA_RIGHT );
34
36 /* ** */ /* *** */
37 &c1t,
38 CB, &C2, 1, FLA_BOTTOM );
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_LEFT );
50
52 c1t,
53 /* ** */ /* *** */
54 &CB, C2, FLA_TOP );
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

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_hh().

◆ FLA_Gemm_hh_unb_var2()

FLA_Error FLA_Gemm_hh_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}

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_hh().

◆ FLA_Gemm_hh_unb_var3()

FLA_Error FLA_Gemm_hh_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
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
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 */
44
45 /*------------------------------------------------------------*/
46
48 b1t,
49 /* ** */ /* *** */
50 &BB, B2, FLA_TOP );
51
52 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, c1, /**/ C2,
53 FLA_LEFT );
54
55 }
56
57 return FLA_SUCCESS;
58}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gemvc_external(), FLA_Obj_length(), 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_hh().

◆ FLA_Gemm_hh_unb_var4()

FLA_Error FLA_Gemm_hh_unb_var4 ( 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
24
25 FLA_Part_2x1( B, &BT,
26 &BB, 0, FLA_BOTTOM );
27
28 FLA_Part_1x2( C, &CL, &CR, 0, FLA_RIGHT );
29
30 while ( FLA_Obj_length( BB ) < FLA_Obj_length( B ) ){
31
33 &b1t,
34 /* ** */ /* *** */
35 BB, &B2, 1, FLA_TOP );
36
37 FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, &c1, /**/ &C2,
38 1, FLA_LEFT );
39
40 /*------------------------------------------------------------*/
41
42 /* c1 = A' * b1t' + c1 */
44
45 /*------------------------------------------------------------*/
46
48 /* ** */ /* *** */
49 b1t,
50 &BB, B2, FLA_BOTTOM );
51
52 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, /**/ c1, C2,
53 FLA_RIGHT );
54
55 }
56
57 return FLA_SUCCESS;
58}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gemvc_external(), FLA_Obj_length(), 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_hh().

◆ FLA_Gemm_hh_unb_var5()

FLA_Error FLA_Gemm_hh_unb_var5 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16{
17 FLA_Obj AT, A0,
18 AB, a1t,
19 A2;
20
21 FLA_Obj BL, BR, B0, b1, B2;
22
24
25 FLA_Part_2x1( A, &AT,
26 &AB, 0, FLA_TOP );
27
28 FLA_Part_1x2( B, &BL, &BR, 0, FLA_LEFT );
29
30 while ( FLA_Obj_length( AT ) < FLA_Obj_length( A ) ){
31
33 /* ** */ /* *** */
34 &a1t,
35 AB, &A2, 1, FLA_BOTTOM );
36
37 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, /**/ &b1, &B2,
38 1, FLA_RIGHT );
39
40 /*------------------------------------------------------------*/
41
42 /* C = a1t' * b1' + C */
44
45 /*------------------------------------------------------------*/
46
48 a1t,
49 /* ** */ /* *** */
50 &AB, A2, FLA_TOP );
51
52 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, b1, /**/ B2,
53 FLA_LEFT );
54
55 }
56
57 return FLA_SUCCESS;
58}
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

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gerc_external(), FLA_Obj_length(), 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_hh().

◆ FLA_Gemm_hh_unb_var6()

FLA_Error FLA_Gemm_hh_unb_var6 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C 
)
16{
17 FLA_Obj AT, A0,
18 AB, a1t,
19 A2;
20
21 FLA_Obj BL, BR, B0, b1, B2;
22
24
25 FLA_Part_2x1( A, &AT,
26 &AB, 0, FLA_BOTTOM );
27
28 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT );
29
30 while ( FLA_Obj_length( AB ) < FLA_Obj_length( A ) ){
31
33 &a1t,
34 /* ** */ /* *** */
35 AB, &A2, 1, FLA_TOP );
36
37 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &b1, /**/ &B2,
38 1, FLA_LEFT );
39
40 /*------------------------------------------------------------*/
41
42 /* C = a1t' * b1' + C */
44
45 /*------------------------------------------------------------*/
46
48 /* ** */ /* *** */
49 a1t,
50 &AB, A2, FLA_BOTTOM );
51
52 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ b1, B2,
53 FLA_RIGHT );
54
55 }
56
57 return FLA_SUCCESS;
58}

References FLA_Cont_with_1x3_to_1x2(), FLA_Cont_with_3x1_to_2x1(), FLA_Gerc_external(), FLA_Obj_length(), 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_hh().