All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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