Object-oriented Scientific Computing Library: Version 0.910
givens.h
Go to the documentation of this file.
00001 /*
00002   -------------------------------------------------------------------
00003   
00004   Copyright (C) 2006-2012, Andrew W. Steiner
00005   
00006   This file is part of O2scl.
00007   
00008   O2scl is free software; you can redistribute it and/or modify
00009   it under the terms of the GNU General Public License as published by
00010   the Free Software Foundation; either version 3 of the License, or
00011   (at your option) any later version.
00012   
00013   O2scl is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016   GNU General Public License for more details.
00017   
00018   You should have received a copy of the GNU General Public License
00019   along with O2scl. If not, see <http://www.gnu.org/licenses/>.
00020 
00021   -------------------------------------------------------------------
00022 */
00023 #ifndef O2SCL_GIVENS_H
00024 #define O2SCL_GIVENS_H
00025 
00026 #include <gsl/gsl_math.h>
00027 
00028 #include <o2scl/err_hnd.h>
00029 #include <o2scl/permutation.h>
00030 #include <o2scl/cblas.h>
00031 #include <o2scl/vec_arith.h>
00032 
00033 /** \file givens.h
00034     \brief File for Givens rotations
00035 */
00036 
00037 namespace o2scl_linalg {
00038   
00039   /// Desc
00040   void create_givens(const double a, const double b, double &c, 
00041                      double &s);
00042   
00043 #define O2SCL_IX(V,i) V[i]
00044 #define O2SCL_IX2(M,i,j) M[i][j]
00045 #include <o2scl/givens_base.h>  
00046 #undef O2SCL_IX
00047 #undef O2SCL_IX2
00048 
00049 }
00050 
00051 #ifndef DOXYGENP
00052 namespace o2scl_linalg_paren {
00053   
00054   void create_givens(const double a, const double b, double &c, 
00055                      double &s);
00056   
00057 #define O2SCL_IX(V,i) V(i)
00058 #define O2SCL_IX2(M,i,j) M(i,j)
00059 #include <o2scl/givens_base.h>  
00060 #undef O2SCL_IX
00061 #undef O2SCL_IX2
00062   
00063 }
00064 #endif
00065 
00066 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.