/*
* Automatically Tuned Linear Algebra Software v3.8.3
* (C) Copyright 1999 R. Clint Whaley
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions, and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the ATLAS group or the names of its contributers may
* not be used to endorse or promote products derived from this
* software without specific written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ATLAS GROUP OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
/*
* Header file for ATLAS's auxiliary routines
*/
#ifndef ATLAS_AUX_H
#define ATLAS_AUX_H
#include "atlas_misc.h"
void ATL_xerbla(int p, char *rout, char *form, ...);
int ATL_lcm(const int M, const int N);
double ATL_walltime();
double ATL_cputime();
/*
* Auxiliary routines that come in all four types
*/
void ATL_sgeadd(const int M, const int N, const float alpha,
const float *A, const int lda, const float beta,
float *C, const int ldc);
void ATL_sgemove(const int M, const int N, const float alpha,
const float *A, const int lda, float *C, const int ldc);
void ATL_sgemoveT(const int N, const int M, const float alpha,
const float *A, const int lda, float *C, const int ldc);
void ATL_ssyreflect(const enum ATLAS_UPLO Uplo, const int N,
float *C, const int ldc);
void ATL_sgecopy(const int M, const int N, const float *A, const int lda,
float *C, const int ldc);
void ATL_sgescal(const int M, const int N, const float beta,
float *C, const int ldc);
void ATL_strscal
(const enum ATLAS_UPLO Uplo, const int M, const int N, const float alpha,
float *A, const int lda);
void ATL_shescal
(const enum ATLAS_UPLO Uplo, const int M, const int N, const float alpha,
float *A, const int lda);
void ATL_sgezero(const int M, const int N, float *C, const int ldc);
void ATL_szero(const int N, float *X, const int incX);
void ATL_sset(const int N, const float alpha, float *X, const int incX);
void ATL_sscal(const int N, const float alpha, float *X, const int incX);
void ATL_scopy(const int N, const float *X, const int incX,
float *Y, const int incY);
void ATL_scpsc(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY);
void ATL_saxpy(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY);
void ATL_saxpy_x1_y1(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY);
void ATL_saxpby(const int N, const float alpha, const float *X,
const int incX, const float beta, float *Y, const int incY);
void ATL_sgeadd_a1_b1
(const int M, const int N, const float alpha, const float *A,
const int lda, const float beta, float *C, const int ldc);
void ATL_saxpby_a1_b1
(const int N, const float alpha, const float *X, const int incX,
const float beta, float *Y, const int incY);
void ATL_sgeadd_a0_b1
(const int M, const int N, const float alpha, const float *A,
const int lda, const float beta, float *C, const int ldc);
void ATL_saxpby_a0_b1
(const int N, const float alpha, const float *X, const int incX,
const float beta, float *Y, const int incY);
void ATL_sgeadd_aX_b1
(const int M, const int N, const float alpha, const float *A,
const int lda, const float beta, float *C, const int ldc);
void ATL_saxpby_aX_b1
(const int N, const float alpha, const float *X, const