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