28 #ifdef TNT_BOUNDS_CHECK
52 void copy_(T* p,
const T* q,
int len)
const;
53 void set_(T* begin, T* end,
const T& val);
67 inline operator const T*();
76 inline int dim()
const;
98 std::cout <<
"Created Array1D(const Array1D<T> &A) \n";
108 std::cout <<
"Created Array1D(int n) \n";
116 std::cout <<
"Created Array1D(int n, const T& val) \n";
126 std::cout <<
"Created Array1D(int n, T* a) \n";
148 #ifdef TNT_BOUNDS_CHECK
158 #ifdef TNT_BOUNDS_CHECK
171 set_(data_, data_+n_, a);
179 copy_(A.
data_, data_, n_);
189 copy_(data_, A.
data_, n_);
232 return v_.ref_count();
238 if (((i0 > 0) && (i1 < n_)) || (i0 <= i1))
259 for (T* p=begin; p<end; p++)
Definition: tnt_array1d.h:40
Array1D(const Array1D &A)
Array1D & inject(const Array1D &A)
Definition: tnt_array1d.h:186
T value_type
Definition: tnt_array1d.h:58
Array1D copy() const
Definition: tnt_array1d.h:176
void copy_(T *p, const T *q, int len) const
Definition: tnt_array1d.h:265
int dim1() const
Definition: tnt_array1d.h:218
Array1D & ref(const Array1D &A)
Definition: tnt_array1d.h:199
Array1D(int n)
Definition: tnt_array1d.h:105
Array1D()
Definition: tnt_array1d.h:91
Array1D & operator=(const Array1D &A)
i_refvec< T > v_
Definition: tnt_array1d.h:45
Array1D(int n, const T &a)
Definition: tnt_array1d.h:113
T * data_
Definition: tnt_array1d.h:47
const T & operator[](int i) const
Definition: tnt_array1d.h:156
int dim() const
Definition: tnt_array1d.h:221
Array1D< T > subarray(int i0, int i1)
Definition: tnt_array1d.h:236
void set_(T *begin, T *end, const T &val)
Definition: tnt_array1d.h:257
~Array1D()
Definition: tnt_array1d.h:224
Array1D & operator=(const T &a)
Definition: tnt_array1d.h:169
T & operator[](int i)
Definition: tnt_array1d.h:146
int n_
Definition: tnt_array1d.h:46
Array1D(int n, T *a)
Definition: tnt_array1d.h:123
int ref_count() const
Definition: tnt_array1d.h:230
Definition: tnt_i_refvec.h:56
Definition: tnt_array1d.h:36