mimas::_fastsqr< T > Struct Template Reference

Fast square. More...

#include <functions.h>

Inheritance diagram for mimas::_fastsqr< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::_fastsqr< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 _fastsqr (void)
 Constructor.
int operator() (const T &x) const
 Function.

Public Attributes

boost::array< int, 512 > table
 Table with precomputed values.

Detailed Description

template<typename T>
struct mimas::_fastsqr< T >

Fast square.

Compute square of values between -511 and +511 using a precomputed table.

Definition at line 30 of file functions.h.


Constructor & Destructor Documentation

template<typename T>
mimas::_fastsqr< T >::_fastsqr ( void   )  [inline]

Constructor.

Definition at line 33 of file functions.h.

References mimas::_fastsqr< T >::table.


Member Function Documentation

template<typename T>
int mimas::_fastsqr< T >::operator() ( const T &  x  )  const [inline]

Function.

Definition at line 38 of file functions.h.

References mimas::_fastsqr< T >::table.


Member Data Documentation

template<typename T>
boost::array< int, 512 > mimas::_fastsqr< T >::table

Table with precomputed values.

Definition at line 43 of file functions.h.

Referenced by mimas::_fastsqr< T >::_fastsqr(), and mimas::_fastsqr< T >::operator()().


The documentation for this struct was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:27 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...