Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
expressions
DVecStdDevExpr.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_EXPRESSIONS_DVECSTDDEVEXPR_H_
36
#define _BLAZE_MATH_EXPRESSIONS_DVECSTDDEVEXPR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/expressions/DenseVector.h
>
44
#include <
blaze/math/expressions/DVecMapExpr.h
>
45
#include <
blaze/math/expressions/DVecVarExpr.h
>
46
#include <
blaze/util/FunctionTrace.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// GLOBAL FUNCTIONS
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
79
template
<
typename
VT
// Type of the dense vector
80
,
bool
TF >
// Transpose flag
81
decltype
(
auto
)
stddev
(
const
DenseVector<VT,TF>
& dv )
82
{
83
BLAZE_FUNCTION_TRACE
;
84
85
return
sqrt
(
var
( *dv ) );
86
}
87
//*************************************************************************************************
88
89
}
// namespace blaze
90
91
#endif
DVecMapExpr.h
Header file for the dense vector map expression.
DVecVarExpr.h
Header file for the dense vector variance expression.
FunctionTrace.h
Header file for the function trace functionality.
blaze::DenseVector
Base class for N-dimensional dense vectors.
Definition
DenseVector.h:77
DenseVector.h
Header file for the DenseVector base class.
blaze::stddev
decltype(auto) stddev(const DenseMatrix< MT, SO > &dm)
Computes the standard deviation for the given dense matrix.
Definition
DMatStdDevExpr.h:83
blaze::var
decltype(auto) var(const DenseMatrix< MT, SO > &dm)
Computes the variance for the given dense matrix.
Definition
DMatVarExpr.h:138
blaze::sqrt
decltype(auto) sqrt(const DenseMatrix< MT, SO > &dm)
Computes the square root of each single element of the dense matrix dm.
Definition
DMatMapExpr.h:1616
BLAZE_FUNCTION_TRACE
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition
FunctionTrace.h:94
Generated by
1.18.0