AlgebraicTraits< Rational< IntType > > Class Template Reference

#include <AlgebraicTraits.h>

Inheritance diagram for AlgebraicTraits< Rational< IntType > >:

Inheritance graph
[legend]
Collaboration diagram for AlgebraicTraits< Rational< IntType > >:

Collaboration graph
[legend]
List of all members.

Public Types

enum  
enum  
enum  
typedef Rational< IntType > number_type
typedef Rational< IntType > norm_type
typedef Rational< IntType > scalar_type
typedef Rational< IntType > degree_type

Static Public Member Functions

static const char * name ()
static number_type zero ()
static number_type one ()
static number_type zero (const number_type &hint)
static number_type one (const number_type &hint)
static bool is_zero (const number_type &val)
static number_type epsilon ()
static bool equals (const number_type &first, const number_type &second)
static number_type abs (const number_type &arg)
static norm_type norm (const number_type &arg)
static number_type sqrt (number_type arg)

Detailed Description

template<class IntType>
class AlgebraicTraits< Rational< IntType > >

AlgebraicTraits Partial specialization for rational number type

Definition at line 543 of file AlgebraicTraits.h.


Member Function Documentation

template<class IntType>
static const char* AlgebraicTraits< Rational< IntType > >::name (  )  [inline, static]

This method from the AlgebricTraits<T> class should return a symbolic name for the type "T" (e.g. AlgebraicTraits<Polynomial>::name() could return the string "Polynomial" ). This method is used when we want to serialize an object to an XML file and we need to know the name of the type it represents.

Reimplemented from AlgebraicTraitsBase.

Definition at line 561 of file AlgebraicTraits.h.


The documentation for this class was generated from the following file:
Math-Objects Library Docs  Generated by: doxygen