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
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_SHIMS_SQUARE_H_
36
#define _BLAZE_MATH_SHIMS_SQUARE_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/traits/MultExprTrait.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// SQUARE SHIM
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
64
template
<
typename
T >
65
inline
const
typename
MultExprTrait<T,T>::Type
sq
(
const
T& a )
66
{
67
return
a * a;
68
}
69
//*************************************************************************************************
70
71
}
// namespace blaze
72
73
#endif
blaze::sq
const Quaternion< Type > sq(const Quaternion< Type > &m)
Squaring the given quaternion.
Definition:
Quaternion.h:1034
MultExprTrait.h
Header file for the MultExprTrait class template.
blaze::MultExprTrait
Evaluation of the resulting expression type of a multiplication.Via this type trait it is possible to...
Definition:
MultExprTrait.h:137
Generated on Fri Jun 20 2014 06:06:51 by
1.8.7