Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
expressions
DMatStdDevExpr.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_EXPRESSIONS_DMATSTDDEVEXPR_H_
36
#define _BLAZE_MATH_EXPRESSIONS_DMATSTDDEVEXPR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/expressions/DenseMatrix.h
>
44
#include <
blaze/math/expressions/DMatMapExpr.h
>
45
#include <
blaze/math/expressions/DMatVarExpr.h
>
46
#include <
blaze/util/FunctionTrace.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// GLOBAL FUNCTIONS
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
81
template
<
typename
MT
// Type of the dense matrix
82
,
bool
SO >
// Storage order
83
inline
decltype
(
auto
)
stddev
(
const
DenseMatrix<MT,SO>
& dm )
84
{
85
BLAZE_FUNCTION_TRACE
;
86
87
return
sqrt
(
var
( *dm ) );
88
}
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
128
template
< ReductionFlag RF
// Reduction flag
129
,
typename
MT
// Type of the dense matrix
130
,
bool
SO >
// Storage order
131
inline
decltype
(
auto
)
stddev
(
const
DenseMatrix<MT,SO>
& dm )
132
{
133
BLAZE_FUNCTION_TRACE
;
134
135
return
sqrt
(
var<RF>
( *dm ) );
136
}
137
//*************************************************************************************************
138
139
}
// namespace blaze
140
141
#endif
DMatMapExpr.h
Header file for the dense matrix map expression.
DMatVarExpr.h
Header file for the dense matrix variance expression.
FunctionTrace.h
Header file for the function trace functionality.
blaze::DenseMatrix
Base class for dense matrices.
Definition
DenseMatrix.h:82
DenseMatrix.h
Header file for the DenseMatrix 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