#ifndef USE_CXXLAPACK #define USE_CXXLAPACK #endif #include using namespace flens; namespace mylapack { template typename GeMatrix::IndexType trf(GeMatrix &A, DenseVector &piv) { typedef typename GeMatrix::IndexType IndexType; return cxxlapack::getrf(A.numRows(), A.numCols(), A.data(), A.leadingDimension(), piv.data()); } template void trs(Transpose trans, const GeMatrix &A, const DenseVector &piv, DenseVector &b) { typedef typename GeMatrix::IndexType IndexType; cxxlapack::getrs(lapack::getF77Char(trans), A.numRows(), 1, A.data(), A.leadingDimension(), piv.data(), b.data(), b.length()); } } // namespace mylapack