Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Tsqr_Blas.hpp
00001 //@HEADER
00002 // ************************************************************************
00003 // 
00004 //          Kokkos: Node API and Parallel Node Kernels
00005 //              Copyright (2009) 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 
00032 #include <Tsqr_ConfigDefs.hpp>
00033 
00034 namespace TSQR {
00035 
00039   template<class Ordinal, class Scalar>
00040   class BLAS {
00041   public:
00042     BLAS () {}
00043 
00044     void 
00045     GEMV (const char* const trans, 
00046     const Ordinal m, 
00047     const Ordinal n,
00048     const Scalar alpha,
00049     const Scalar A[],
00050     const Ordinal lda,
00051     const Scalar x[],
00052     const Ordinal incx,
00053     const Scalar beta,
00054     Scalar y[],
00055     const Ordinal incy);
00056 
00057     void
00058     GEMM (const char* const transa,
00059     const char* const transb,
00060     const Ordinal m,
00061     const Ordinal n,
00062     const Ordinal k,
00063     const Scalar alpha,
00064     const Scalar A[],
00065     const Ordinal lda,
00066     const Scalar B[],
00067     const Ordinal ldb,
00068     const Scalar beta,
00069     Scalar C[],
00070     const Ordinal ldc);
00071 
00075     void
00076     GER (const Ordinal m,
00077    const Ordinal n,
00078    const Scalar alpha,
00079    const Scalar x[],
00080    const Ordinal incx,
00081    const Scalar y[],
00082    const Ordinal incy,
00083    Scalar A[],
00084    const Ordinal lda);
00085 
00086     void
00087     TRSM (const char* const side,
00088     const char* const uplo,
00089     const char* const transa,
00090     const char* const diag,
00091     const Ordinal m,
00092     const Ordinal n,
00093     const Scalar alpha,
00094     const Scalar A[],
00095     const Ordinal lda,
00096     Scalar B[],
00097     const Ordinal ldb);
00098 
00099   private:
00100     BLAS (const BLAS&);
00101     BLAS& operator= (const BLAS&);
00102   };
00103 
00104 } // namespace TSQR
00105 
00106 #endif // __TSQR_TsqrBlas_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends