Reference last element in dimension. More...

int end
 Reference last element in dimension. More...
 

Detailed Description

Reference last element in dimension.

Variable Documentation

int end

Reference last element in dimension.

The end variable is used to access the last element in a dimension.

float hA[] = { 0,1,2,3,4,5 };
array A(2,3,hA);
A(end,0) // last element in first column: 1
A(end) // last element of entire array: 5
A(-1) // equivalent to A(end)
A(-2) // equivalent to A(end-1)
See Also
Indexing
Examples:
examples/helloworld/helloworld.cpp, and examples/pde/fdtd.cpp.