#ifndef USE_CXXLAPACK #define USE_CXXLAPACK #endif #include using namespace flens; namespace mylapack { template typename RestrictTo::value && IsIntegerDenseVector::value, typename RemoveRef::Type::IndexType>::Type trf(MA &&A, VPIV &&piv) { typedef typename RemoveRef::Type::IndexType IndexType; return cxxlapack::getrf(A.numRows(), A.numCols(), A.data(), A.leadingDimension(), piv.data()); } template typename RestrictTo::value && IsIntegerDenseVector::value && IsDenseVector::value, void>::Type trs(Transpose trans, const MA &A, const VPIV &piv, VB &&b) { typedef typename MA::IndexType IndexType; cxxlapack::getrs(lapack::getF77Char(trans), A.numRows(), 1, A.data(), A.leadingDimension(), piv.data(), b.data(), b.length()); } } // namespace mylapack