Access one or more rows of an array.
More...
| array | row (int index) const |
| | Access row index to form row vector. More...
|
| |
| array | rows (int first, int last) const |
| | Access rows first through last to form a matrix (inclusive). More...
|
| |
Access one or more rows of an array.
The row indexing functions return elements located in the specified row(s).
If the array is 3-dimensional or higher, then the specified rows from all slices are returned.
| array row |
( |
int |
index | ) |
const |
|
inline |
| array rows |
( |
int |
first, |
|
|
int |
last |
|
) |
| const |
|
inline |
Access rows first through last to form a matrix (inclusive).
float f[] = {1,2,3,4,5,6};
- Parameters
-
| [in] | first | beginning row index |
| [in] | last | end row index |
- Returns
- Returns an array of size (last - first + 1) x dims(1) x dims(2)
- Note
- Cannot be used in gfor. Use array(seq(first, last), span, span) instead.