ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
mode.hpp
Go to the documentation of this file.
1/*
2 * $Id: mode.hpp 199 2012-08-05 19:11:05Z jdl3 $
3 * Copyright (C) 2010 John D Lamb
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20#ifndef CCGSL_MODE_HPP
21#define CCGSL_MODE_HPP
22
23#include<gsl/gsl_mode.h>
24
25namespace gsl {
29 typedef gsl_mode_t mode_t;
33 namespace mode {
37 inline mode_t const DOUBLE(){ return 0; }
41 inline mode_t const SINGLE(){ return 1; }
45 inline mode_t const APPROX(){ return 2; }
51 inline unsigned int PREC( mode_t mt ){ return GSL_MODE_PREC( mt ); }
55 inline mode_t const DEFAULT(){ return 0; }
56 }
57}
58
59#endif
mode_t const APPROX()
Predefined mode.
Definition: mode.hpp:45
mode_t const DOUBLE()
Predefined mode.
Definition: mode.hpp:37
unsigned int PREC(mode_t mt)
Extract precision from 3 low-order bits of mode.
Definition: mode.hpp:51
mode_t const SINGLE()
Predefined mode.
Definition: mode.hpp:41
mode_t const DEFAULT()
Predefined mode.
Definition: mode.hpp:55
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34
gsl_mode_t mode_t
A typedef for gsl_mode_t.
Definition: mode.hpp:29