#include <functions.h>
Inheritance diagram for mimas::_fastsqr< T >:
Public Member Functions | |
_fastsqr (void) | |
Constructor. | |
int | operator() (const T &x) const |
Function. | |
Public Attributes | |
boost::array< int, 512 > | table |
Table with precomputed values. |
Compute square of values between -511 and +511 using a precomputed table.
Definition at line 30 of file functions.h.
mimas::_fastsqr< T >::_fastsqr | ( | void | ) | [inline] |
int mimas::_fastsqr< T >::operator() | ( | const T & | x | ) | const [inline] |
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()().