Debian Codegraph @

src/blas/3/syr2k/ln/matlab/FLA_Syr2k_ln_blk_var9.m

raw
1 %
2 %
3 % Copyright (C) 2014, The University of Texas at Austin
4 %
5 % This file is part of libflame and is available under the 3-Clause
6 % BSD license, which can be found in the LICENSE file at the top-level
7 % directory, or at http://opensource.org/licenses/BSD-3-Clause
8 %
9 %
10
11 function [ C_out ] = FLA_Syr2k_ln_blk_var9( A, B, C, nb_alg )
12
13 [ AL, AR ] = FLA_Part_1x2( A, ...
14 0, 'FLA_LEFT' );
15
16 [ BL, BR ] = FLA_Part_1x2( B, ...
17 0, 'FLA_LEFT' );
18
19 while ( size( AL, 2 ) < size( A, 2 ) )
20
21 b = min( size( AR, 2 ), nb_alg );
22
23 [ A0, A1, A2 ]= FLA_Repart_1x2_to_1x3( AL, AR, ...
24 b, 'FLA_RIGHT' );
25
26 [ B0, B1, B2 ]= FLA_Repart_1x2_to_1x3( BL, BR, ...
27 b, 'FLA_RIGHT' );
28
29 %------------------------------------------------------------%
30
31 C = C + A1 * B1' + B1 * A1';
32
33 %------------------------------------------------------------%
34
35 [ AL, AR ] = FLA_Cont_with_1x3_to_1x2( A0, A1, A2, ...
36 'FLA_LEFT' );
37
38 [ BL, BR ] = FLA_Cont_with_1x3_to_1x2( B0, B1, B2, ...
39 'FLA_LEFT' );
40
41 end
42
43 C_out = C;
44
45
46 return
47