AutoDJ
Public Types | Public Member Functions | List of all members
TNT::Array2D< T > Class Template Reference

Public Types

typedef T value_type
 

Public Member Functions

 Array2D (int m, int n)
 
 Array2D (int m, int n, T *a)
 
 Array2D (int m, int n, const T &a)
 
 Array2D (const Array2D &A)
 
 operator T** ()
 
 operator const T ** ()
 
Array2Doperator= (const T &a)
 
Array2Doperator= (const Array2D &A)
 
Array2Dref (const Array2D &A)
 
Array2D copy () const
 
Array2Dinject (const Array2D &A)
 
T * operator[] (int i)
 
const T * operator[] (int i) const
 
int dim1 () const
 
int dim2 () const
 
int ref_count ()
 
int ref_count_data ()
 
int ref_count_dim1 ()
 
Array2D subarray (int i0, int i1, int j0, int j1)
 Create a new view to a subarray defined by the boundaries [i0][i0] and [i1][j1]. More...
 

Member Function Documentation

◆ subarray()

template<class T >
Array2D< T > TNT::Array2D< T >::subarray ( int  i0,
int  i1,
int  j0,
int  j1 
)

Create a new view to a subarray defined by the boundaries [i0][i0] and [i1][j1].

The size of the subarray is (i1-i0) by (j1-j0). If either of these lengths are zero or negative, the subarray view is null.


The documentation for this class was generated from the following file: