mimas::_sumsquares< T > Struct Template Reference

Compute sum of squares. More...

#include <functions.h>

Inheritance diagram for mimas::_sumsquares< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

operator() (const T &x, const T &y) const
 Compute sum of squares.

Detailed Description

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

Compute sum of squares.

The sum of squares can be computed with the multiplication- and plus-operator as well, but it would require allocation of one temporary array.

Definition at line 170 of file functions.h.


Member Function Documentation

template<typename T>
T mimas::_sumsquares< T >::operator() ( const T &  x,
const T &  y 
) const [inline]

Compute sum of squares.

Parameters:
x First value.
y Second value.
Returns:
x^2+y^2

Definition at line 175 of file functions.h.


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, ...