11 #ifndef RTOPPACK_LAPACK_WRAPPERS_HPP
12 #define RTOPPACK_LAPACK_WRAPPERS_HPP
43 template<
class Scalar>
52 template<
class Scalar>
69 template<
class Scalar>
91 info < 0, std::invalid_argument
92 ,
"getrf(...): Error, Invalid argument "
93 << -info <<
" sent to LAPACK function xGETRF(...)" );
99 template<
class Scalar>
122 &ipiv[0], BX->values().get(), BX->leadingDim(), &info
125 info < 0, std::invalid_argument
126 ,
"getrs(...): Error, Invalid argument "
127 << -info <<
" sent to LAPACK function xGETRS(...)" );
132 #endif // RTOPPACK_LAPACK_WRAPPERS_HPP
Ordinal numSubCols() const
bool is_null(const boost::shared_ptr< T > &p)
void getrs(const ConstSubMultiVectorView< Scalar > &A, const ArrayView< const int > &ipiv, const ETransp transp, const Ptr< const SubMultiVectorView< Scalar > > &BX)
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
const ArrayRCP< Scalar > values() const
const int NUM_ETRANS_ARGS
void GETRF(const OrdinalType &m, const OrdinalType &n, ScalarType *A, const OrdinalType &lda, OrdinalType *IPIV, OrdinalType *info) const
Ordinal leadingDim() const
Class for a changeable sub-vector.
TypeTo as(const TypeFrom &t)
void getrf(const SubMultiVectorView< Scalar > &A, const ArrayView< int > &ipiv, const Ptr< int > &rank)
Peform an in-place factorization of a square or rectangular matrix.
const ArrayRCP< const Scalar > values() const
const Teuchos::Tuple< char, NUM_ETRANS_ARGS > transpMap
void GETRS(const char &TRANS, const OrdinalType &n, const OrdinalType &nrhs, const ScalarType *A, const OrdinalType &lda, const OrdinalType *IPIV, ScalarType *B, const OrdinalType &ldb, OrdinalType *info) const
Class for a non-changeable sub-multi-vector (submatrix).
#define TEUCHOS_ASSERT(assertion_test)
#define TEUCHOS_ASSERT_EQUALITY(val1, val2)
#define TEUCHOS_MIN(x, y)
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)