|
| Array2D () |
| Creates a two-dimensional array with empty index set. More...
|
|
| Array2D (Array2D< E > &&A) |
| Creates a two-dimensional array containing the elements of A (move semantics). More...
|
|
| Array2D (const Array2D< E > &A) |
| Creates a two-dimensional array that is a copy of A . More...
|
|
| Array2D (int a, int b, int c, int d) |
| Creates a two-dimensional array with index set [a , ..., b ]*[c , ..., d ]. More...
|
|
| Array2D (int a, int b, int c, int d, const E &x) |
| Creates a two-dimensional array with index set [a , ..., b ]*[c , ..., d ] and initailizes all elements with x . More...
|
|
| ~Array2D () |
| Destructor. More...
|
|
float | det () const |
| Returns the determinant of the matrix. More...
|
|
void | fill (const E &x) |
| Sets all elements to x . More...
|
|
int | high1 () const |
| Returns the maximal array index in dimension 1. More...
|
|
int | high2 () const |
| Returns the maximal array index in dimension 2. More...
|
|
void | init () |
| Reinitializes the array to an array with empty index set. More...
|
|
void | init (int a, int b, int c, int d) |
| Reinitializes the array to an array with index set [a , ..., b ]*[c , ..., d ]. More...
|
|
void | init (int a, int b, int c, int d, const E &x) |
| Reinitializes the array to an array with index set [a , ..., b ]*[c , ..., d ] and initializes all entries with x . More...
|
|
int | low1 () const |
| Returns the minimal array index in dimension 1. More...
|
|
int | low2 () const |
| Returns the minimal array index in dimension 2. More...
|
|
E & | operator() (int i, int j) |
| Returns a reference to the element with index (i ,j ). More...
|
|
const E & | operator() (int i, int j) const |
| Returns a reference to the element with index (i ,j ). More...
|
|
Array2D< E > & | operator= (Array2D< E > &&A) |
| Assignment operator (move semantics). More...
|
|
Array2D< E > & | operator= (const Array2D< E > &array2) |
| Assignment operator. More...
|
|
int | size () const |
| Returns the size (number of elements) of the array. More...
|
|
int | size1 () const |
| Returns the length of the index interval (number of entries) in dimension 1. More...
|
|
int | size2 () const |
| Returns the length of the index interval (number of entries) in dimension 2. More...
|
|
template<class E>
class ogdf::Array2D< E >
The parameterized class Array2D implements dynamic two-dimensional arrays.
- Template Parameters
-
E | denotes the element type. |
Definition at line 53 of file Array2D.h.