Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
blaze
math
shims
Square.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_SHIMS_SQUARE_H_
23
#define _BLAZE_MATH_SHIMS_SQUARE_H_
24
25
26
//*************************************************************************************************
27
// Includes
28
//*************************************************************************************************
29
30
#include <
blaze/math/traits/MultExprTrait.h
>
31
32
33
namespace
blaze {
34
35
//=================================================================================================
36
//
37
// SQUARE SHIM
38
//
39
//=================================================================================================
40
41
//*************************************************************************************************
51
template
<
typename
T >
52
inline
const
typename
MultExprTrait<T,T>::Type
sq
(
const
T& a )
53
{
54
return
a * a;
55
}
56
//*************************************************************************************************
57
58
}
// namespace blaze
59
60
#endif
Generated on Sun Jan 20 2013 08:14:37 by
1.8.3