16#include <NeMachineLearningLib.h>
21 namespace MachineLearning
123 void cdiv(
double xr,
double xi,
double yr,
double yi);
133 template<
typename _Tp>
139 template<
typename _Tp>
140 _Tp *alloc_1d(
int m, _Tp val)
142 _Tp *arr = alloc_1d<_Tp>(m);
143 for (
int i = 0; i < m; i++)
148 template<
typename _Tp>
149 _Tp **alloc_2d(
int m,
int n)
151 _Tp **arr =
new _Tp*[m];
152 for (
int i = 0; i < m; i++)
157 template<
typename _Tp>
158 _Tp **alloc_2d(
int m,
int n, _Tp val)
160 _Tp **arr = alloc_2d<_Tp>(m, n);
161 for (
int i = 0; i < m; i++) {
162 for (
int j = 0; j < n; j++) {
Eigenvalue Decomposition.
~EigenvalueDecomposition()
Destructor.
void Compute(af::array &A)
Computes the eigenvalues and -vectors in decending order
void hqr2()
Nonsymmetric reduction from Hessenberg to real Schur form.
EigenvalueDecomposition(af::array &A)
Constructor.
void orthes()
Nonsymmetric reduction to Hessenberg form.
af::array Eigenvectors()
Gets the corresponding eigenvectors.
af::array Eigenvalues()
Gets the eigenvalues in decending order.