1
/* ---------------------------------------------------------------------
3
* -- Automatically Tuned Linear Algebra Software (ATLAS)
4
* (C) Copyright 2000 All Rights Reserved
6
* -- ATLAS routine -- Version 3.0 -- April 1, 2000
8
* -- Suggestions, comments, bugs reports should be sent to the follo-
9
* wing e-mail address: atlas@cs.utk.edu
11
* Author : Antoine P. Petitet
12
* Contributor(s) : R. Clint Whaley
13
* University of Tennessee - Innovative Computing Laboratory
14
* Knoxville TN, 37996-1301, USA.
16
* ---------------------------------------------------------------------
18
* -- Copyright notice and Licensing terms:
20
* Redistribution and use in source and binary forms, with or without
21
* modification, are permitted provided that the following conditions
24
* 1. Redistributions of source code must retain the above copyright
25
* notice, this list of conditions and the following disclaimer.
26
* 2. Redistributions in binary form must reproduce the above copyright
27
* notice, this list of conditions, and the following disclaimer in
28
* the documentation and/or other materials provided with the distri-
30
* 3. The name of the University, the ATLAS group, or the names of its
31
* contributors may not be used to endorse or promote products deri-
32
* ved from this software without specific written permission.
36
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
38
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
40
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE-
41
* CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
42
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
43
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEO-
44
* RY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (IN-
45
* CLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
46
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
48
* ---------------------------------------------------------------------
53
#include "atlas_rblas3.h"
54
#include "atlas_kernel3.h"
76
* ATL_rhemmLU performs the following matrix-matrix operation
78
* C := alpha * A * B + beta * C,
80
* where alpha and beta are scalars, A is a (upper) Hermitian matrix and
81
* B and C are m by n matrices.
83
* This is a type-less recursive version of the algorithm.
85
* ---------------------------------------------------------------------
88
* .. Local Variables ..
93
* .. Executable Statements ..
96
if( ( m1 = M - RB ) <= 0 )
97
{ RTYP->Themm( M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC ); return; }
99
m2 = M - ( m1 = RB + ( m1 / ( RB << 1 ) ) * RB ); size = RTYP->size;
101
ATL_rhemmLU( RTYP, m1, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC, RB );
103
RTYP->TgemmNN( m1, N, m2, ALPHA, Mrc3( A, 0, m1, LDA, size ), LDA,
104
Mrc3( B, m1, 0, LDB, size ), LDB, RTYP->one, C, LDC );
106
RTYP->Tgemm( m2, N, m1, ALPHA, Mrc3( A, 0, m1, LDA, size ), LDA,
107
B, LDB, BETA, Mrc3( C, m1, 0, LDC, size ), LDC );
109
ATL_rhemmLU( RTYP, m2, N, ALPHA, Mrc3( A, m1, m1, LDA, size ), LDA,
110
Mrc3( B, m1, 0, LDB, size ), LDB, RTYP->one, Mrc3( C,
111
m1, 0, LDC, size ), LDC, RB );