Maptitude GISDK Help |
Transposes an array of arrays, where element b[i][j] = a[j][i].
Added to Version 6.0/2012. Renamed in Version 2014.
b =TransposeArray(array a)
Argument |
Contents |
a |
An array of arrays |
An array of arrays, where element b[i][j] = a[j][i].
The function used to be named ArrayTranspose() and that name can still be used, but TransposeArray() is preferred.
If the input array contains an element that is not an array, the function raises an error.
The elements of array a don't have to have the same length. If they don't, the return array will have the length of the longest sub-array of a.
All the elements of the returned array will be of the same length, namely the length of the input array.
Error Type |
Meaning |
Error |
The input array contains an element that is not an array |
b = TransposeArray({{1,2}, {3,4}}) // b = {{1,3}, {2,4}}
b = TransposeArray({{1, "a"}, , {3}}) // b = {{1, , 3}, {"a", , }}
GISDK Function |
Summary |
Copies an array to a vector |
|
Copies a vector to a new vector |
|
Constructs a cumulative vector in a new vector |
|
Concatenates vectors into one, combined long vector |
|
Creates a vector from a field in a view|set |
|
Creates vectors from fields in a view|set |
|
Fills values into a field in a view|set from a vector |
|
Fills values into fields in a view|set from vectors |
|
Sorts the elements of a vector in ascending order |
|
Sorts an array of vectors in ascending order, based on the first vector |
|
Creates a vector |
|
Computes a given statistic for the vector |
|
Copies a vector to an array |
©2025 Caliper Corporation | www.caliper.com |