48 template<
int N,
class T>
49 class assert_compile_time {
65 class assert_compile_time<0,double> {
77 validate_value_stride;
85 validate_index_stride;
104 const Range1D rng = RangePack::full_range(rng_in,1,sv_in.
dim());
125 if( sv.dim() && sv.nz() == sv.dim() && sv.is_sorted() ) {
127 Teuchos::arcp(&itr->
value(), 0, values_stride*rng.
size(),
false) ;
137 Teuchos::arcp(&itr->
value(), 0, values_stride*sv.nz(),
false) ;
139 Teuchos::arcp(&itr->
index(), 0, indices_stride*sv.nz(),
false);
RTOp_index_type index_type
size_type dim() const
Return the number of elements in the full vector.
RTOp_value_type value_type
Sparse Vector Slice class template.
Index size() const
Return the size of the range (ubound() - lbound() + 1)
RTOpPack::SparseSubVector sub_vec_view(const SpVectorSlice &sv, const Range1D &rng=Range1D())
Create an RTOpPack::SparseSubVector view object from a SpVectorSlice object.
const index_type & index() const
. One-based subregion index range class.
Index lbound() const
Return lower bound of the range.
Sparse storage element type.
SparseSubVectorT< RTOp_value_type > SparseSubVector
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)