NumCpp  2.9.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 
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  {
52 
53  return linalg::inv(cov(x, bias));
54  }
55 } // namespace nc
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
NdArray< double > inv(const NdArray< dtype > &inArray)
Definition: inv.hpp:56
Definition: Coordinate.hpp:45
NdArray< double > cov_inv(const NdArray< dtype > &x, bool bias=false)
Definition: cov_inv.hpp:49
NdArray< double > cov(const NdArray< dtype > &x, bool bias=false)
Definition: cov.hpp:52