44 #include "DenseLinAlgPack_DVectorClassTmpl.hpp" 
   45 #include "Teuchos_Assert.hpp" 
   47 #ifdef LINALGPACK_CHECK_SLICE_SETUP 
   48 DenseLinAlgPack::size_type DenseLinAlgPack::vector_validate_sized(
size_type size)
 
   51     !size, std::invalid_argument
 
   52     ,
"vector_validate_sized(...) : Error, A vector region can not be created from an unsized vector.\n" 
   58 #ifdef LINALGPACK_CHECK_RANGE 
   62     ubound > max_ubound, std::out_of_range
 
   63     ,
"vector_validate_range(...) : The upper bound is out of range.\n");
 
   67 #ifdef LINALGPACK_CHECK_RANGE 
   71     i < 1 || i > size, std::out_of_range
 
   72     ,
"vector_validate_subscript(size,i) : Error, Subscript i out of bounds.\n");
 
   76 #ifdef LINALGPACK_CHECK_RHS_SIZES 
   80     size1 != size2, std::length_error
 
   81     ,
"assert_vs_sizes(...) : Error, size1 = " << size1 << 
" != size2 = " << size2 << 
"\n");
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)