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"
33#include "NumCpp/Linalg/inv.hpp"
34#include "NumCpp/NdArray.hpp"
35
36namespace nc
37{
38 //============================================================================
39 // Method Description:
49 template<typename dtype>
51 {
53
54 return linalg::inv(cov(x, bias));
55 }
56} // namespace nc
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
NdArray< double > inv(const NdArray< dtype > &inArray)
Definition: inv.hpp:54
Definition: Cartesian.hpp:40
NdArray< double > cov_inv(const NdArray< dtype > &x, Bias bias=Bias::NO)
Definition: cov_inv.hpp:50
NdArray< double > cov(const NdArray< dtype > &x, Bias bias=Bias::NO)
Definition: cov.hpp:53
Bias
Bias boolean.
Definition: Enums.hpp:65