NumCpp
2.11.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
cov_inv.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
31
#include "
NumCpp/Functions/cov.hpp
"
32
#include "
NumCpp/Linalg/inv.hpp
"
33
#include "
NumCpp/NdArray.hpp
"
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
48
template
<
typename
dtype>
49
NdArray<double>
cov_inv
(
const
NdArray<dtype>
& x,
bool
bias =
false
)
50
{
51
STATIC_ASSERT_ARITHMETIC
(dtype);
52
53
return
linalg::inv
(
cov
(x, bias));
54
}
55
}
// namespace nc
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, bool bias=false)
Definition:
cov_inv.hpp:49
nc::cov
NdArray< double > cov(const NdArray< dtype > &x, bool bias=false)
Definition:
cov.hpp:52
include
NumCpp
Functions
cov_inv.hpp
Generated by
1.9.1