|
| | Array2D () |
| | Creates a two-dimensional array with empty index set.
|
| |
| | Array2D (Array2D< E > &&A) |
| | Creates a two-dimensional array containing the elements of A (move semantics).
|
| |
| | Array2D (const Array2D< E > &A) |
| | Creates a two-dimensional array that is a copy of A.
|
| |
| | Array2D (int a, int b, int c, int d) |
| | Creates a two-dimensional array with index set [a, ..., b]*[c, ..., d].
|
| |
| | 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.
|
| |
| | ~Array2D () |
| | Destructor.
|
| |
| float | det () const |
| | Returns the determinant of the matrix.
|
| |
| void | fill (const E &x) |
| | Sets all elements to x.
|
| |
| int | high1 () const |
| | Returns the maximal array index in dimension 1.
|
| |
| int | high2 () const |
| | Returns the maximal array index in dimension 2.
|
| |
| void | init () |
| | Reinitializes the array to an array with empty index set.
|
| |
| void | init (int a, int b, int c, int d) |
| | Reinitializes the array to an array with index set [a, ..., b]*[c, ..., d].
|
| |
| 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.
|
| |
| int | low1 () const |
| | Returns the minimal array index in dimension 1.
|
| |
| int | low2 () const |
| | Returns the minimal array index in dimension 2.
|
| |
| E & | operator() (int i, int j) |
| | Returns a reference to the element with index (i,j).
|
| |
| const E & | operator() (int i, int j) const |
| | Returns a reference to the element with index (i,j).
|
| |
| Array2D< E > & | operator= (Array2D< E > &&A) |
| | Assignment operator (move semantics).
|
| |
| Array2D< E > & | operator= (const Array2D< E > &array2) |
| | Assignment operator.
|
| |
| int | size () const |
| | Returns the size (number of elements) of the array.
|
| |
| int | size1 () const |
| | Returns the length of the index interval (number of entries) in dimension 1.
|
| |
| int | size2 () const |
| | Returns the length of the index interval (number of entries) in dimension 2.
|
| |
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.