27 #ifdef TNT_BOUNDS_CHECK
58 inline operator T**();
59 inline operator const T**();
98 for (
int i=0; i<m; i++)
116 for (
int i=0; i<m; i++)
131 for (
int i=0; i<m; i++)
143 #ifdef TNT_BOUNDS_CHECK
156 #ifdef TNT_BOUNDS_CHECK
170 for (
int i=0; i<m_; i++)
171 for (
int j=0; j<n_; j++)
184 for (
int i=0; i<m_; i++)
185 for (
int j=0; j<n_; j++)
196 if (A.
m_ == m_ && A.
n_ == n_)
198 for (
int i=0; i<m_; i++)
199 for (
int j=0; j<n_; j++)
279 T* p = &(data_[0]) + i0 * n_ + j0;
280 for (
int i=0; i<m; i++)
291 return ref_count_data();
299 return data_.ref_count();
305 return v_.ref_count();
Definition: tnt_array1d.h:40
Definition: tnt_array2d.h:38
Array2D & ref(const Array2D &A)
Definition: tnt_array2d.h:209
T * operator[](int i)
Definition: tnt_array2d.h:141
T value_type
Definition: tnt_array2d.h:52
const T * operator[](int i) const
Definition: tnt_array2d.h:154
int dim1() const
Definition: tnt_array2d.h:231
Array2D(int m, int n, const T &a)
Definition: tnt_array2d.h:109
Array1D< T * > v_
Definition: tnt_array2d.h:46
Array2D & inject(const Array2D &A)
Definition: tnt_array2d.h:194
int ref_count()
Definition: tnt_array2d.h:289
int m_
Definition: tnt_array2d.h:47
int dim2() const
Definition: tnt_array2d.h:234
Array2D & operator=(const Array2D &A)
Array1D< T > data_
Definition: tnt_array2d.h:45
Array2D copy() const
Definition: tnt_array2d.h:180
Array2D(int m, int n, T *a)
Definition: tnt_array2d.h:125
int ref_count_dim1()
Definition: tnt_array2d.h:303
Array2D subarray(int i0, int i1, int j0, int j1)
Definition: tnt_array2d.h:263
Array2D(int m, int n)
Definition: tnt_array2d.h:93
int n_
Definition: tnt_array2d.h:48
Array2D(const Array2D &A)
Array2D()
Definition: tnt_array2d.h:83
Array2D & operator=(const T &a)
Definition: tnt_array2d.h:166
int ref_count_data()
Definition: tnt_array2d.h:297
~Array2D()
Definition: tnt_array2d.h:238
Definition: tnt_array1d.h:36