library of assembled shared sources

http://lass.cocamware.com

num_traits.cpp File Reference

#include "num_common.h"
#include "num_traits.h"
#include "interval.h"
#include <climits>
#include <cfloat>

Include dependency graph for num_traits.cpp:

Go to the source code of this file.


Namespaces

namespace  lass
 Library for Assembled Shared Sources.
namespace  lass::num
 numeric types and traits.

Defines

#define LASS_NUM_PI   3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
#define LASS_NUM_E   2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427
#define LASS_NUM_SQRT_2   1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641572
#define LASS_NUM_SQRT_PI   1.772453850905516027298167483341145
#define LASS_NUM_TRAITS_INTEGRAL_TEMPLATE_SPEC(t_type, v_min, v_max)
 code generating macro for integral types

Variables

struct LASS_DLL lass::num::NumTraits< float >
struct LASS_DLL lass::num::NumTraits< double >
struct LASS_DLL lass::num::NumTraits< long double >


Detailed Description

Author:
Bram de Greve (bramz@users.sourceforge.net)

Tom De Muer (tomdemuer@users.sourceforge.net)

*** BEGIN LICENSE INFORMATION ***

The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://lass.sourceforge.net/cpal-license. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is LASS - Library of Assembled Shared Sources.

The Initial Developer of the Original Code is Bram de Greve and Tom De Muer. The Original Developer is the Initial Developer.

All portions of the code written by the Initial Developer are: Copyright (C) 2004-2007 the Initial Developer. All Rights Reserved.

Contributor(s):

Alternatively, the contents of this file may be used under the terms of the GNU General Public License Version 2 or later (the GPL), in which case the provisions of GPL are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the GPL and not to allow others to use your version of this file under the CPAL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the CPAL or the GPL.

*** END LICENSE INFORMATION ***

Definition in file num_traits.cpp.


Define Documentation

#define LASS_NUM_PI   3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067

Definition at line 57 of file num_traits.cpp.

#define LASS_NUM_E   2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427

Definition at line 58 of file num_traits.cpp.

#define LASS_NUM_SQRT_2   1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641572

Definition at line 59 of file num_traits.cpp.

#define LASS_NUM_SQRT_PI   1.772453850905516027298167483341145

Definition at line 60 of file num_traits.cpp.

#define LASS_NUM_TRAITS_INTEGRAL_TEMPLATE_SPEC ( t_type,
v_min,
v_max   ) 

Value:

template <> struct LASS_DLL NumTraits<t_type>;\
const size_t   NumTraits<t_type>::memorySize = sizeof(t_type);\
const size_t   NumTraits<t_type>::mantisseSize = 0;\
const t_type NumTraits<t_type>::one = 1;\
const t_type NumTraits<t_type>::zero= 0;\
const t_type NumTraits<t_type>::epsilon = 1;\
const t_type NumTraits<t_type>::min = v_min;\
const t_type NumTraits<t_type>::max = v_max;\
const t_type NumTraits<t_type>::minStrictPositive = 1;\
code generating macro for integral types

Definition at line 166 of file num_traits.cpp.


Generated on Mon Nov 10 14:22:05 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo