@@ -63,7 +63,7 @@ struct lapack_potrf<T, DEVICE_CPU> {
6363};
6464
6565template <typename T>
66- struct lapack_dnevd <T, DEVICE_CPU > {
66+ struct lapack_heevd <T, DEVICE_CPU > {
6767 using Real = typename GetTypeReal<T>::type;
6868 void operator ()(
6969 const char & jobz,
@@ -85,15 +85,15 @@ struct lapack_dnevd<T, DEVICE_CPU> {
8585 Tensor iwork (DataTypeToEnum<int >::value, DeviceType::CpuDevice, {liwork});
8686 iwork.zero ();
8787
88- lapackConnector::dnevd (jobz, uplo, dim, Mat, dim, eigen_val, work.data <T>(), lwork, rwork.data <Real>(), lrwork, iwork.data <int >(), liwork, info);
88+ lapackConnector::heevd (jobz, uplo, dim, Mat, dim, eigen_val, work.data <T>(), lwork, rwork.data <Real>(), lrwork, iwork.data <int >(), liwork, info);
8989 if (info != 0 ) {
90- throw std::runtime_error (" dnevd failed with info = " + std::to_string (info));
90+ throw std::runtime_error (" heevd failed with info = " + std::to_string (info));
9191 }
9292 }
9393};
9494
9595template <typename T>
96- struct lapack_dngvd <T, DEVICE_CPU > {
96+ struct lapack_hegvd <T, DEVICE_CPU > {
9797 using Real = typename GetTypeReal<T>::type;
9898 void operator ()(
9999 const int & itype,
@@ -117,9 +117,9 @@ struct lapack_dngvd<T, DEVICE_CPU> {
117117 Tensor iwork (DataType::DT_INT , DeviceType::CpuDevice, {liwork});
118118 iwork.zero ();
119119
120- lapackConnector::dngvd (itype, jobz, uplo, dim, Mat_A, dim, Mat_B, dim, eigen_val, work.data <T>(), lwork, rwork.data <Real>(), lrwork, iwork.data <int >(), liwork, info);
120+ lapackConnector::hegvd (itype, jobz, uplo, dim, Mat_A, dim, Mat_B, dim, eigen_val, work.data <T>(), lwork, rwork.data <Real>(), lrwork, iwork.data <int >(), liwork, info);
121121 if (info != 0 ) {
122- throw std::runtime_error (" dngvd failed with info = " + std::to_string (info));
122+ throw std::runtime_error (" hegvd failed with info = " + std::to_string (info));
123123 }
124124 }
125125};
@@ -194,15 +194,15 @@ template struct lapack_trtri<double, DEVICE_CPU>;
194194template struct lapack_trtri <std::complex <float >, DEVICE_CPU >;
195195template struct lapack_trtri <std::complex <double >, DEVICE_CPU >;
196196
197- template struct lapack_dnevd <float , DEVICE_CPU >;
198- template struct lapack_dnevd <double , DEVICE_CPU >;
199- template struct lapack_dnevd <std::complex <float >, DEVICE_CPU >;
200- template struct lapack_dnevd <std::complex <double >, DEVICE_CPU >;
197+ template struct lapack_heevd <float , DEVICE_CPU >;
198+ template struct lapack_heevd <double , DEVICE_CPU >;
199+ template struct lapack_heevd <std::complex <float >, DEVICE_CPU >;
200+ template struct lapack_heevd <std::complex <double >, DEVICE_CPU >;
201201
202- template struct lapack_dngvd <float , DEVICE_CPU >;
203- template struct lapack_dngvd <double , DEVICE_CPU >;
204- template struct lapack_dngvd <std::complex <float >, DEVICE_CPU >;
205- template struct lapack_dngvd <std::complex <double >, DEVICE_CPU >;
202+ template struct lapack_hegvd <float , DEVICE_CPU >;
203+ template struct lapack_hegvd <double , DEVICE_CPU >;
204+ template struct lapack_hegvd <std::complex <float >, DEVICE_CPU >;
205+ template struct lapack_hegvd <std::complex <double >, DEVICE_CPU >;
206206
207207template struct lapack_getrf <float , DEVICE_CPU >;
208208template struct lapack_getrf <double , DEVICE_CPU >;
0 commit comments