Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
expressions
SVecStdDevExpr.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_EXPRESSIONS_SVECSTDDEVEXPR_H_
36
#define _BLAZE_MATH_EXPRESSIONS_SVECSTDDEVEXPR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/expressions/SparseVector.h
>
44
#include <
blaze/math/expressions/SVecMapExpr.h
>
45
#include <
blaze/math/expressions/SVecVarExpr.h
>
46
#include <
blaze/util/FunctionTrace.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// GLOBAL FUNCTIONS
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
80
template
<
typename
VT
// Type of the sparse vector
81
,
bool
TF >
// Transpose flag
82
decltype
(
auto
)
stddev
(
const
SparseVector<VT,TF>
& sv )
83
{
84
BLAZE_FUNCTION_TRACE
;
85
86
return
sqrt
(
var
( *sv ) );
87
}
88
//*************************************************************************************************
89
90
}
// namespace blaze
91
92
#endif
FunctionTrace.h
Header file for the function trace functionality.
SVecMapExpr.h
Header file for the sparse vector map expression.
SVecVarExpr.h
Header file for the sparse vector variance expression.
blaze::SparseVector
Base class for sparse vectors.
Definition
SparseVector.h:72
SparseVector.h
Header file for the SparseVector 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