Blaze 3.9
Loading...
Searching...
No Matches
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
47
48
49namespace blaze {
50
51//=================================================================================================
52//
53// GLOBAL FUNCTIONS
54//
55//=================================================================================================
56
57//*************************************************************************************************
81template< typename MT // Type of the dense matrix
82 , bool SO > // Storage order
83inline decltype(auto) stddev( const DenseMatrix<MT,SO>& dm )
84{
86
87 return sqrt( var( *dm ) );
88}
89//*************************************************************************************************
90
91
92//*************************************************************************************************
128template< ReductionFlag RF // Reduction flag
129 , typename MT // Type of the dense matrix
130 , bool SO > // Storage order
131inline decltype(auto) stddev( const DenseMatrix<MT,SO>& dm )
132{
134
135 return sqrt( var<RF>( *dm ) );
136}
137//*************************************************************************************************
138
139} // namespace blaze
140
141#endif
Header file for the dense matrix map expression.
Header file for the dense matrix variance expression.
Header file for the function trace functionality.
Base class for dense matrices.
Definition DenseMatrix.h:82
Header file for the DenseMatrix base class.
decltype(auto) stddev(const DenseMatrix< MT, SO > &dm)
Computes the standard deviation for the given dense matrix.
Definition DMatStdDevExpr.h:83
decltype(auto) var(const DenseMatrix< MT, SO > &dm)
Computes the variance for the given dense matrix.
Definition DMatVarExpr.h:138
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
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition FunctionTrace.h:94