42 #include "subscript.h"
44 #ifdef TNT_USE_REGIONS
67 template <
class BBVec>
72 typedef typename BBVec::value_type
T;
111 #ifdef TNT_BOUNDS_CHECK
112 BIASASSERT(i==TNT_BASE_OFFSET);
114 return (i==TNT_BASE_OFFSET ?
v_.size() : 0 );
119 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
129 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
137 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
144 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
148 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
164 vm1_ = (
v_.size() > 0 ? &(
v_[0]) -1 : NULL);
191 if (N ==
size())
return *
this;
201 return (*
this = tmp);
208 #ifdef TNT_BOUNDS_CHECK
210 BIASASSERT(i<=
dim());
217 #ifdef TNT_BOUNDS_CHECK
219 BIASASSERT(i<=
dim());
226 #ifdef TNT_BOUNDS_CHECK
235 #ifdef TNT_BOUNDS_CHECK
243 #ifdef TNT_USE_REGIONS
251 {
return Region(*
this, I); }
254 {
return Region(*
this, i1, i2); }
256 const_Region
operator()(
const Index1D &I)
const
257 {
return const_Region(*
this, I); }
260 {
return const_Region(*
this, i1, i2); }
269 template <
class BBVec>
270 std::ostream& operator<<(std::ostream &s, const Vector_Adaptor<BBVec> &A)
280 template <
class BBVec>
Vector_Adaptor(Subscript N, char *s)
std::istream & operator>>(std::istream &s, Fortran_Matrix< T > &A)
reference operator[](Subscript i)
Vector_Adaptor< BBVec > & operator=(const Vector_Adaptor< BBVec > &A)
const_reference operator[](Subscript i) const
Vector_Adaptor< BBVec > & free()
TNT_SUBSCRIPT_TYPE Subscript
Vector_Adaptor(const Vector_Adaptor< BBVec > &A)
Vector_Adaptor< BBVec > & operator=(const T &a)
Vector_Adaptor(Subscript N, const T *values)
Vector_Adaptor< BBVec > & resize(Subscript N)
Vector_Adaptor(const BBVec &A)
Vector_Adaptor(Subscript N, const T &value=T())
reference operator()(Subscript i)
const T & const_reference
Subscript dim(Subscript i)
Vector_Adaptor< BBVec > & newsize(Subscript N)
const_reference operator()(Subscript i) const