NumCpp
2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
cov_inv.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include "
NumCpp/Core/Enums.hpp
"
31
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
32
#include "
NumCpp/Functions/cov.hpp
"
33
#include "
NumCpp/Linalg/inv.hpp
"
34
#include "
NumCpp/NdArray.hpp
"
35
36
namespace
nc
37
{
38
//============================================================================
39
// Method Description:
49
template
<
typename
dtype>
50
NdArray<double>
cov_inv
(
const
NdArray<dtype>
& x,
Bias
bias =
Bias::NO
)
51
{
52
STATIC_ASSERT_ARITHMETIC
(dtype);
53
54
return
linalg::inv
(
cov
(x, bias));
55
}
56
}
// namespace nc
Enums.hpp
NdArray.hpp
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition:
StaticAsserts.hpp:39
nc::NdArray< double >
cov.hpp
inv.hpp
nc::linalg::inv
NdArray< double > inv(const NdArray< dtype > &inArray)
Definition:
inv.hpp:54
nc
Definition:
Cartesian.hpp:40
nc::cov_inv
NdArray< double > cov_inv(const NdArray< dtype > &x, Bias bias=Bias::NO)
Definition:
cov_inv.hpp:50
nc::cov
NdArray< double > cov(const NdArray< dtype > &x, Bias bias=Bias::NO)
Definition:
cov.hpp:53
nc::Bias
Bias
Bias boolean.
Definition:
Enums.hpp:65
nc::Bias::NO
@ NO
include
NumCpp
Functions
cov_inv.hpp
Generated by
1.9.4