2
* Automatically Tuned Linear Algebra Software v3.2
3
* (C) Copyright 1999 Antoine P. Petitet
5
* Code contributers : Antoine P. Petitet, R. Clint Whaley
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* 2. Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions, and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
* 3. The name of the University of Tennessee, the ATLAS group,
16
* or the names of its contributers may not be used to endorse
17
* or promote products derived from this software without specific
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE
24
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
* POSSIBILITY OF SUCH DAMAGE.
33
#include "atlas_misc.h"
34
#include "atlas_tst.h"
35
#include "atlas_f77blas.h"
37
void Mjoin( PATL, f77herk )
39
const enum ATLAS_UPLO UPLO,
40
const enum ATLAS_TRANS TRANS,
51
#if defined( StringSunStyle )
52
#if defined( ATL_FunkyInts )
57
#elif defined( StringStructVal ) || defined( StringStructPtr )
60
#elif defined( StringCrayStyle )
68
const F77_INTEGER F77N = N, F77K = K,
69
F77lda = LDA, F77ldc = LDC;
77
TYPE alpha = ALPHA, beta = BETA;
79
if( UPLO == AtlasLower ) cuplo = 'L';
82
if( TRANS == AtlasNoTrans ) ctran = 'N';
85
#if defined( StringSunStyle )
86
F77herk( &cuplo, &ctran, &F77N, &F77K, &alpha, A, &F77lda,
87
&beta, C, &F77ldc, ONE, ONE );
88
#elif defined( StringCrayStyle )
89
fuplo = ATL_C2F_TransChar( cuplo );
90
ftran = ATL_C2F_TransChar( ctran );
91
F77herk( fuplo, ftran, &F77N, &F77K, &alpha, A, &F77lda,
93
#elif defined( StringStructVal )
94
fuplo.len = 1; fuplo.cp = &cuplo;
95
ftran.len = 1; ftran.cp = &ctran;
96
F77herk( fuplo, ftran, &F77N, &F77K, &alpha, A, &F77lda,
98
#elif defined( StringStructPtr )
99
fuplo.len = 1; fuplo.cp = &cuplo;
100
ftran.len = 1; ftran.cp = &ctran;
101
F77herk( &fuplo, &ftran, &F77N, &F77K, &alpha, A, &F77lda,
104
(void) fprintf( stderr, "\n\nF77/C interface not defined!!\n\n" );