47 #ifdef LINALGPACK_CHECK_SLICE_SETUP
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");
Teuchos::Ordinal size_type
Typedef for the size type of elements that are used by the library.
size_type vector_validate_sized(size_type size)
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void assert_vs_sizes(size_type size1, size_type size2)
void vector_validate_range(size_type ubound, size_type max_ubound)
void vector_validate_subscript(size_type size, size_type i)