@@ -580,11 +580,12 @@ namespace cppdlr {
580580 fconv += matmul (cf2it, tmp2);
581581
582582 // Then precompose with DLR grid values to DLR coefficients matrix
583- if constexpr (nda::is_complex_v<S>) { // getrs requires matrix and rhs to have same value type
584- nda::lapack::getrs (transpose (it2cf.zlu ), fconv, it2cf.piv ); // Note: lapack effectively tranposes fconv by fortran reordering here
583+ if constexpr (nda::is_complex_v<S>) { // getrs requires matrix and rhs to have same value type
584+ nda::lapack::getrs (transpose (it2cf.zlu ), transpose (fconv),
585+ it2cf.piv ); // Note: lapack effectively tranposes fconv by fortran reordering here
585586 } else {
586587 // getrs requires matrix and rhs to have same value type
587- nda::lapack::getrs (transpose (it2cf.lu ), fconv, it2cf.piv );
588+ nda::lapack::getrs (transpose (it2cf.lu ), transpose ( fconv) , it2cf.piv );
588589 }
589590
590591 fconv *= beta;
@@ -627,11 +628,12 @@ namespace cppdlr {
627628 }
628629
629630 // Do the solve
630- if constexpr (nda::is_complex_v<S>) { // getrs requires matrix and rhs to have same value type
631- nda::lapack::getrs (transpose (it2cf.zlu ), fconvtmp, it2cf.piv ); // Note: lapack effectively tranposes fconv by fortran reordering here
631+ if constexpr (nda::is_complex_v<S>) { // getrs requires matrix and rhs to have same value type
632+ nda::lapack::getrs (transpose (it2cf.zlu ), transpose (fconvtmp),
633+ it2cf.piv ); // Note: lapack effectively tranposes fconv by fortran reordering here
632634 } else {
633635 // getrs requires matrix and rhs to have same value type
634- nda::lapack::getrs (transpose (it2cf.lu ), fconvtmp, it2cf.piv );
636+ nda::lapack::getrs (transpose (it2cf.lu ), transpose ( fconvtmp) , it2cf.piv );
635637 }
636638
637639 // Transpose back
@@ -903,7 +905,7 @@ namespace cppdlr {
903905 }
904906
905907 // Precompose with DLR values to coefficients matrix
906- nda::lapack::getrs (transpose (it2cf.lu ), refl, it2cf.piv ); // Lapack effectively transposes refl by fortran reordering here
908+ nda::lapack::getrs (transpose (it2cf.lu ), transpose ( refl) , it2cf.piv ); // Lapack effectively transposes refl by fortran reordering here
907909 }
908910
909911 private:
@@ -946,7 +948,7 @@ namespace cppdlr {
946948 * @param[in] ar Archive to serialize into
947949 */
948950 void serialize (auto &ar) const {
949- ar &lambda_ &r &dlr_rf &dlr_it &cf2it &it2cf.lu &it2cf.zlu &it2cf.piv &hilb &tcf2it &thilb &ttcf2it &ipmat &refl;
951+ ar & lambda_ & r & dlr_rf & dlr_it & cf2it & it2cf.lu & it2cf.zlu & it2cf.piv & hilb & tcf2it & thilb & ttcf2it & ipmat & refl;
950952 }
951953
952954 /* *
@@ -956,7 +958,9 @@ namespace cppdlr {
956958 *
957959 * @param[in] ar Archive to deserialize from
958960 */
959- void deserialize (auto &ar) { ar &lambda_ &r &dlr_rf &dlr_it &cf2it &it2cf.lu &it2cf.zlu &it2cf.piv &hilb &tcf2it &thilb &ttcf2it &ipmat &refl; }
961+ void deserialize (auto &ar) {
962+ ar & lambda_ & r & dlr_rf & dlr_it & cf2it & it2cf.lu & it2cf.zlu & it2cf.piv & hilb & tcf2it & thilb & ttcf2it & ipmat & refl;
963+ }
960964
961965 // -------------------- hdf5 -------------------
962966
0 commit comments