|
Anasazi Version of the Day
|
00001 // @HEADER 00002 // *********************************************************************** 00003 // 00004 // Anasazi: Block Eigensolvers Package 00005 // Copyright (2010) Sandia Corporation 00006 // 00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00008 // license for use of this work by or on behalf of the U.S. Government. 00009 // 00010 // This library is free software; you can redistribute it and/or modify 00011 // it under the terms of the GNU Lesser General Public License as 00012 // published by the Free Software Foundation; either version 2.1 of the 00013 // License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, but 00016 // WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00023 // USA 00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00029 #ifndef __TSQR_TsqrBlas_hpp 00030 #define __TSQR_TsqrBlas_hpp 00031 00034 00035 namespace TSQR { 00036 00037 template< class Ordinal, class Scalar > 00038 class BLAS { 00039 public: 00040 BLAS () {} 00041 00042 void 00043 GEMV (const char* const trans, 00044 const Ordinal m, 00045 const Ordinal n, 00046 const Scalar alpha, 00047 const Scalar A[], 00048 const Ordinal lda, 00049 const Scalar x[], 00050 const Ordinal incx, 00051 const Scalar beta, 00052 Scalar y[], 00053 const Ordinal incy); 00054 00055 void 00056 GEMM (const char* const transa, 00057 const char* const transb, 00058 const Ordinal m, 00059 const Ordinal n, 00060 const Ordinal k, 00061 const Scalar alpha, 00062 const Scalar A[], 00063 const Ordinal lda, 00064 const Scalar B[], 00065 const Ordinal ldb, 00066 const Scalar beta, 00067 Scalar C[], 00068 const Ordinal ldc); 00069 00073 void 00074 GER (const Ordinal m, 00075 const Ordinal n, 00076 const Scalar alpha, 00077 const Scalar x[], 00078 const Ordinal incx, 00079 const Scalar y[], 00080 const Ordinal incy, 00081 Scalar A[], 00082 const Ordinal lda); 00083 00084 void 00085 TRSM (const char* const side, 00086 const char* const uplo, 00087 const char* const transa, 00088 const char* const diag, 00089 const Ordinal m, 00090 const Ordinal n, 00091 const Scalar alpha, 00092 const Scalar A[], 00093 const Ordinal lda, 00094 Scalar B[], 00095 const Ordinal ldb); 00096 00097 private: 00098 BLAS (const BLAS&); 00099 BLAS& operator= (const BLAS&); 00100 }; 00101 00102 } // namespace TSQR 00103 00104 #endif // __TSQR_TsqrBlas_hpp
1.7.4